Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Don't know exactly if is a bug related with your code or with Media Browser.
But if you have configured a subdirectory for saving your uploaded images, this subdirectory is not used after you have created a new content with images.
(with Media file selector widget works as expected)
Any suggestion?
Comments
Comment #1
fangel CreditAttribution: fangel commentedI think this is an issue with the Media browser, and not just this modules use of it, but I'll try and look into it.
Comment #2
fangel CreditAttribution: fangel commentedThis is actually an issue with PLUpload - it doesn't have support for uploading to anything but public://.
I've created a bug-report for PLUpoad: #1776300: Respect field settings like minimum - maximum size when used as image field - so please chime in there too.
Comment #3
gmclelland CreditAttribution: gmclelland commented@fangel - do you have any idea on the status of this is? I'm having a trouble following the issues.
Just an fyi... I currently can't seem to specify a "File directory" on image fields. If I do specify a directory, ex. "galleries" then only the first image is uploaded on a multivalued(unlimited) image field and I don't believe the image is uploaded correctly. If you look under admin/content/file the files is missing a name. I believe this problem is only with image fields.
To fix the problem - you can manually create a directory called "galleries", then everything will work correctly UNLESS you are using Tokens in the "File directory" field. Ex. galleries/[current-date:custom:M-Y] is what I use. The problem is that the directories don't get created, so the files can't be moved into the correct directory.
The way I have to work around this is by using the patch for plupload http://drupal.org/node/1946298#comment-7192092, but that is closed(won't fix).
Comment #4
fangel CreditAttribution: fangel commentedI'm currently at DrupalCon (come say hi if you are too - and can find me) and I don't know off the top of my head. I can investigate when I get back, but it's probably some weird combination of image/file/plupload and a couple other modules...
Comment #5
gmclelland CreditAttribution: gmclelland commentedPossibly related: #2128253: File multiple upload does not respect the field's configuration 'File directory'