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

Comments

esbenvb’s picture

Here'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

aaron’s picture

Status: Needs review » Reviewed & tested by the community

This works as advertised.

aaron’s picture

aaron’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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