Hello. Trying to make the import of goods via Feeds and Feeds Tamper.
I can not implement the following: in the import csv image registered as a link to other resources, for example http://site.com/qwe.jpg

I want to when you import an image to change the name - and was not qwe.jpg, but asd.jpg

does it really make?

Comments

twistor’s picture

Status: Active » Postponed (maintainer needs more info)

It seems like the find/replace or Find replace REGEX plugins will work.

I'm not entirely sure what you are asking, if you could try to re-word your question, I could help better.

Anonymous’s picture

I want to do that when you import images, their names were changed. ie the original name of image from other sites - qwe.jpg, and it is necessary that it is renamed to [title].jpg

twistor’s picture

Category: Task » Support request
Status: Postponed (maintainer needs more info) » Closed (works as designed)

This is not possible. Since you need to download the image, the file name needs to stay the same.

paul_constantine’s picture

Sorry to open a long-gone issue.

I have the file already on my localhost - no need to download it. But I still need to change the filename of the jpg because a third-party app just updates the jpg under the same name. So the name stays the same, but the content changes and is applied to a node-type with each feed update.

Feeds itself just adds a version number to the file like this x.jpg, x-0.jpg, x-1.jpg, x-2.jpg ...

The xml feed contains a name for the file. But whenever I use the feeds tamper function "rewrite" and add the token for the image name (from the xml feed) I get an error message "The file cover_name has an invalid extension" and no image is imported. The xpath parser is using that name for the image title, and the image alt title ... so that's working.

Why doesn't it work for the filename as a whole? Renaming files is not such a new concept.

Or am I using the wrong plugin for my task?

Best wishes,
Paul

paul_constantine’s picture

Maybe I need to simplify my question.

What exactly can the plugin "rewrite" acctually rewrite?

Is it possible for this plugin to rewrite the filename of a jpg-file in the feeds folder on the localhost?

  • And if so, can I use tokens for the rewrite?
  • Do I have to supply a path to the file along with that token?
  • Do I have to add a .jpg after the token?

Some input would be great.

Many thanks,
Paul

sano’s picture

the rewrite plugin allows you to construct a new string out of random (custom) text and the tokens listed below the text area in the plugin. It does not rewrite any file names or paths.