Hi,

I am using media feeds to import some contents into a node using csv parser. During the import , I need the files to be stored in a custom location (as the location in csv file (/Library/media/Low/test1.mp4) - so if a folder is not present i need feeds to create that folder and put that file under tat) . But unfortunaltely feeds is putting the files under the public://files folder or the folder specified in file system configuration . I dont want that . Is there any way to achieve this ? Or Is there any other module for this ?

Please assist.

Thanks,
kavitha.

Comments

donbon’s picture

I believe this functionality is built into Drupal.
Go to "Manage Fields" for the content type you are trying to import into. Edit the field that you want to import the file into. You should see an option called "File directory" when editing that field, its just below the "file extensions" setting. Type "/Library/media/Low/" into the "File Directory" and save it. Now when you import, it should put the files into that folder. This isn't really a feeds issue, but when I was trying to do something similar I thought I had to do something in feeds to! Nope, its something you have to edit in the Content type's manage field settings. Good Luck! :)

Nightwalker3000’s picture

I ran to the same issue Today.
After hours of investigation I've find out that its this #2135367: Media Internet Sources does not upload files in the field's File Directory Bug from Media Modul.
Because Mediafeeds is using MediaInternetFileHandler in MediaFeedsInternetProvider and there is a Bug in the postSave function which cause that all files are saved in public:// .

Its a little Frustrating, the Bug report is more then one year old and there is no Further Progress. But i think its a essential requirement for Media Feeds to save files in the right place. Maybe we could add a PostSave function in Media Feeds which is moving the files to the right directory?