Hi,

I didn't really know in which category to file this issue.
Well, if you try to read an image from a page where the URL is eg.: FeedsEnclosure-1169772738-etats-unis-le-retablissement-spectaculaire-d-une-fillette-de-9.jpg?x=205&y=232&q=75&sig=fk54itH5wV3tJLwG3yMm1g--#205,23
The image grabbing fails because of the file extension that is not detected.

However, I don't know what should be done in this case.

Comments

publicmind’s picture

This should not happen as it is a valid URL. If you can elaborate the situation, I will be able to tell you more about it. The image URL you provided is that of the image on the webpage or the downloaded image? (because FIG uses FeedsEnclosure in the filename while downloading the images.)

publicmind’s picture

Status: Active » Closed (fixed)

no response from the filer. open again if required.

Cheers,

paolodoors’s picture

I'm having the same problem but I think that FileField is not accepting the image provided by FIG, the error I get when I try to import a feed is this:

The selected file FeedsEnclosure-4233260707_838b46a845_o_4.jpg?1284319803 could not be saved. Only files with the following extensions are allowed: png gif jpg jpeg.

Marko B’s picture

Do this in module. It will skip image validator and upload.

        $validators  = filefield_widget_upload_validators($field);
       // $image_validators = imagefield_widget_upload_validators($field);
       // $validators       = array_merge($file_validators, $image_validators);
        $info             = field_file_save_file($enclosure->getFile(), $validators, $target_dir, user_load($node->uid));

jmlavarenne’s picture

Priority: Minor » Normal
Status: Closed (fixed) » Active

I'm having the same issue and commenting out the validators does not solve my problem. I don't get the filefield error anymore, but neither do I get an image for the field.

Any idea how to solve this issue?

karengrey’s picture

My xml feed has this kind of URL for the image:

http://somewebsite.com/propertylisting/img1/show/?520

And nothing happens. I dont get any errors, but the image is not saved.

Any ideas?

Marko B’s picture

Jupiter, yes you are right, this validator removing doesnt solve problem, i forgot to tell later that it was just partial sucess here also. So i am still searching for solution for this.

publicmind’s picture

Status: Active » Fixed

finally after a long wait, committed the fix for this in dev. I haven't tested it out extensively, so would appreciate the feedback.

Regards,

Marko B’s picture

Tested it, doesnt work in my case. URL has parametars but also jpg has .asp extension here so i get
The selected file getimage.aspximgid64491fmtid20 could not be saved. Maybe they did this to make harder leecheing or something, but take a look here and say is there some posibility to uplodad file that in fact is jpg but has this dumb ass extension

http://www.tportal.hr/sport/nogomet/112374/Dvije-strane-dva-uvjerenja-dv...

from this rss

http://www.tportal.hr/rss/sportrss.xml

publicmind’s picture

Nothing else can explain that the fix works than this: http://publicmind.in/drupal/node/24585/feed-items

I tried it with the feed URL you provided, with class = articleDetails and zap, everything appeared magically.

Regards,

publicmind’s picture

An advice: Update your UrlToAbsolute package from here: http://sf.net/projects/absoluteurl

Regards,

Marko B’s picture

Thanx, you are right, it works :-) Made a mistake somehow and downloaded dev from january. Thanx public :-)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

tekket’s picture

Commenting out validators(suggested in #4) helped me to download images from nonstandard url. Thanks.