When retrieving a file from the internet and saving it as a local file, using the media file selector on an image field, the file is always saved in the root directory of the current default scheme.
The media_internet module should get its destination from the same function which is used by the file_entity module when uploading files on the file/add page.
Especially when this patch is applied to the file_entity module, it makes sense: http://drupal.org/node/1997208
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | media-saving_files_from_internet_should_use_settings_from_file_entity-1997272-1.patch | 845 bytes | esbenvb |
Comments
Comment #1
esbenvb commentedHere's a patch that fixes it.
Please remember to pass the proper git attribution when porting the patch, as mentioned on http://drupal.org/user/989064
Comment #2
aaron commentedThis works as advertised.
Comment #3
aaron commented#1: media-saving_files_from_internet_should_use_settings_from_file_entity-1997272-1.patch queued for re-testing.
Comment #4
aaron commentedCommitted to http://drupalcode.org/project/media.git/commit/e52f0bf