Hi,

I have a weird issue. I'm using remote_file to transload images from an RSS-feed.

On one feed all the images are stored in files/images/feed-1 - just the way I want it.

Other images are store in files/remote.
Even though I defined fiels/images/feed-x in the coresponding imagefield.

Any suggestions on how I can get them into the right folder?

CommentFileSizeAuthor
#4 CCK-Export.txt7.24 KBKrummrey

Comments

clemens.tolboom’s picture

Status: Active » Postponed (maintainer needs more info)

That's weird? Files in the remote directory are supposed to be temporarily.

Have you ran cron?

Can you describe the step taken so I can reproduce this?

Krummrey’s picture

Ok, I checked.

You're right, the remote directory gets cleaned up. I had imported a lot of images, that's why it was filled up.

Still not all images do end up in the right directory. Images from one content-type do, from an other one don't.
I also have problems using tokens to have them grouped daily.

Could it be, that the filepath is checked just once and not after that, so that any changes made in the content-type filepath settings are not recognized by remote_file? That would also explain why tokens work once, but not the next day when the value of the token changes.

My setup is this:
Use feed-API to create news-items.
Map the URLs of images (using feed-mapper) to a remote_link field.

Works OK. For some reason not all images are being downloaded. The remote_link is populated but no image is being downloaded, not even after a second save.

(Maybe that's an other issue I should file....)

Hope that helps. If not, contact me and I'll give you access to a test site.

clemens.tolboom’s picture

Please add your CCK export file to this issue.

Krummrey’s picture

StatusFileSize
new7.24 KB

Here it is, hope it helps.

clemens.tolboom’s picture

That indeed does not help much :-(

So what modules do I have to install/enable to test this myself?
- feedapi
- feedmapper
?

What documentation do I have to read? Some links could/would be useful I guess.

(Hope to fix this soon :-)

Krummrey’s picture

Yes, FeedAPI and FeedAPI-Mapper.

Grab a feed that contains images as an enclosure and map the enclosed image URL to the remote_link.

If you need more information try the handbook-pages I wrote or drop me a line.
FeedAPI Handbook

clemens.tolboom’s picture

Thanks for the link. Do you have a feed link too :-)

I try this friday.

#edit: no time yet :-(

clemens.tolboom’s picture

Assigned: Unassigned » clemens.tolboom
Status: Postponed (maintainer needs more info) » Active

Your title was excellent but the explanation puzzled me too much ... now I'm working with the module and I noted that all images ended into the files directory which is bad.

So in the end I understand this issue finally.

clemens.tolboom’s picture

Status: Active » Fixed

It seems that in case the image directory does not exists yet it is not created by field_file_save_file. After creating the path by hand the images go into that directory.

I fixed it for my 2 directories depth. Hope this is now fixed.

Krummrey’s picture

Well, the Idea I had was to have a way to store the images in different directories.

Imagefield downloads a feww hundred images a week, too many to manage in a single directory after a while.
So I wanted to have them stored by week. Every week a new directory like 2009-41 for the 41st week of 2009.

That way I could backub the images on a weekly basis and remove them from the server since I only want the smaller ImageCached versions anyway.

How would I go about that?

clemens.tolboom’s picture

You should post this request in the imagefield project I guess now ... for a kind of rolling directories algorithme.

Could you confirm that remote_file now uses the imagefield defined directory?

Status: Fixed » Closed (fixed)

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