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.
file_prepare_directory will not create a dir by default.
Comment | File | Size | Author |
---|---|---|---|
#1 | plupload-1946298-auto-dir-create.patch | 500 bytes | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedComment #2
slashrsm CreditAttribution: slashrsm commentedI am a bit confused, since I don't remember Plupload FAPI element to support #upload_location option. I searched entire module for it and I found nothing.....
Comment #3
gmclelland CreditAttribution: gmclelland commentedI just had a similar problem. I was using http://drupal.org/sandbox/fangel/1652676 with Media-2.x-dev and File Entity-2.x-dev + Plupload.
I have a multivalued image field with Media multiselect as the widget. The field was also set to store the files in files/galleries. I noticed when I used plupload to upload a lot of files at once it was failing. Then I created the a folder under my files directory called galleries and everything started to work fine.
I haven't tried the patch yet, but I just wanted throw that information out there.
Comment #4
gmclelland CreditAttribution: gmclelland commentedJust tested the patch in #1 and it resolved the problem(#3) for me. Thanks @mikeytown2
Comment #5
slashrsm CreditAttribution: slashrsm commentedAgain... this module does not upload files to #upload_location. It puts them into temporary files folder and expects implementing code to decide what to do with them.
You must check for solution in the module you use with Plupload.
Comment #6
gmclelland CreditAttribution: gmclelland commentedJust adding some related issues in case someone happens to stumble across this problem.
#1733472: Problem with subdirectory for upload images
#1776300: Respect field settings like minimum - maximum size when used as image field
I believe this is the issue to follow - #1761496: Implement a value_callback for media element
Comment #7
gmclelland CreditAttribution: gmclelland commented#2128253: File multiple upload does not respect the field's configuration 'File directory' might be related.