Add New Product "error Uploading Images From Url"

When I try to add new product .. I tired to upload the image from URL

http://link.ecomsite.net/m1.php?ref=UNP5782

I received the ErrorIt is not allowed to upload files with the .php extension here.

then I tried with my another URL with Extension

http://g.tanai.com/main.php?src=ANW5419.jpg

still i receive the same error ErrorIt is not allowed to upload files with the .php extension here.

I have more than 20,000 products in my old website ,, I am moving now to cs-cart shopping cart through csv ... product uploaded successfully only images have problem .. i cannot manually download and upload 20,000 images.

someone please help me to solve this issue.

thank you

Not use if this will help, but you can try.

Open the app/functions/fn.images.php file and find the fn_attach_image_pairs function. Then replace:

$icons = fn_filter_uploaded_data($name . '_image_icon', array('png', 'gif', 'jpg', 'jpeg', 'ico'));
$detailed = fn_filter_uploaded_data($name . '_image_detailed', array('png', 'gif', 'jpg', 'jpeg', 'ico'));

with

$icons = fn_filter_uploaded_data($name . '_image_icon', array('png', 'gif', 'jpg', 'jpeg', 'ico', 'php'));
$detailed = fn_filter_uploaded_data($name . '_image_detailed', array('png', 'gif', 'jpg', 'jpeg', 'ico', 'php'));

If this does not help, additional modification will be required. We can add an ability to upload images from php files.

Not use if this will help, but you can try.

Open the app/functions/fn.images.php file and find the fn_attach_image_pairs function. Then replace:

$icons = fn_filter_uploaded_data($name . '_image_icon', array('png', 'gif', 'jpg', 'jpeg', 'ico'));
$detailed = fn_filter_uploaded_data($name . '_image_detailed', array('png', 'gif', 'jpg', 'jpeg', 'ico'));

with

$icons = fn_filter_uploaded_data($name . '_image_icon', array('png', 'gif', 'jpg', 'jpeg', 'ico', 'php'));
$detailed = fn_filter_uploaded_data($name . '_image_detailed', array('png', 'gif', 'jpg', 'jpeg', 'ico', 'php'));

If this does not help, additional modification will be required. We can add an ability to upload images from php files.

Thank you for your reply .. but it doesn't work .. can you please do additional modification for me to accept image from my url.

Awaiting for your reply - thank you once again.