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.
Happens when user clicks next button after files have been uploaded but before dialog closes. Watchdog reports errors like
File temporary://p188iri2p31u1n1e7m1ffi1437ie38.tmp (/tmp/p188iri2p31u1n1e7m1ffi1437ie38.tmp) could not be copied because it does not exist.
Comment | File | Size | Author |
---|---|---|---|
#3 | plupload-2127681-3-disable-submit-button-js.patch | 612 bytes | mikeytown2 |
#1 | plupload-2127681-1-disable-submit-button-js.patch | 568 bytes | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedNot Patched Video: http://www.youtube.com/watch?v=CFXPN9degVU
Patched Video: http://www.youtube.com/watch?v=CQ8tQkBW_Io
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedComment #3
mikeytown2 CreditAttribution: mikeytown2 commentedOpps old patch; here is the correct one
Comment #4
slashrsm CreditAttribution: slashrsm commentedThis looks like File entity related issue.... We cannot add File entity-specific JS to Plupload module.
Comment #5
Dave ReidThis specific input button is provided by plupload, so yes, it is Plupload's responsibility.
Comment #6
Dave ReidComment #7
slashrsm CreditAttribution: slashrsm commented@Dave Reid: Plupload provides no buttons. It is simply a form element that is used in a form, which is provided by File entity (in this specific case).
Prove:
Comment #8
Dave ReidI'm guessing it's the plupload *library* that adds the button. There is no button called 'Saving...' added by File entity.
Comment #9
Dave ReidGrr, I misread the patch as looking for an input element named 'Saving...' which is not the case. Apologies.
Comment #10
Dave ReidHow does this work with the multiple-step upload workflow if the multiform module is enabled? We will still need a way to hit Next and load the next form.
Comment #11
slashrsm CreditAttribution: slashrsm commentedOnce thing that comes to my mind is #submit_element option, which we provide. It is very useful when you have more buttons on a form and you want to associate one of them with Plupload.
Plupload module will disable this button while uploading AFAIK, which might fix this problem.
Comment #12
mikeytown2 CreditAttribution: mikeytown2 commentedAny progress on this?
Comment #13
gmclelland CreditAttribution: gmclelland commented@mikeytown2 - Are you using plupload + multiform + media + file_entity?
You can try the patch in #2142375: Fatal error when adding 2 pdfs at file/add with media, multiform, and plupload
If your uploads fail for some reason like the fatal error in the issue above, it will show one file as temporary.
and
#2128253-3: File multiple upload does not respect the field's configuration 'File directory'
I noticed if the file directories that the files are going to be uploaded to aren't created first then you can get those temporary files. Try manually creating the directories and then try the uploads again. If you don't get any errors any more, then you need the patch from #2128253-3: File multiple upload does not respect the field's configuration 'File directory'.
These may not be related, but if they are I hope that helps.
Comment #14
mikeytown2 CreditAttribution: mikeytown2 commented@gmclelland
No fatal errors, but I am using plupload + multiform + media + file_entity. Check the repo video in #1. Still using this patch #1946298: upload_location directory not being created if it doesn't exist for Plupload so destination directories are being created. Also still using the patch in #3 to fix this issue.
Comment #15
gmclelland CreditAttribution: gmclelland commentedHmm... So it looks like you are using https://drupal.org/sandbox/fangel/1652676 + plupload + multiform + media + file_entity?
FYI...The patch for File Entity in #2128253-3: File multiple upload does not respect the field's configuration 'File directory' would replace the patch for Plupload in https://drupal.org/node/2127681#comment-8144255
Also, I believe the patch for Plupload in https://drupal.org/node/2127681#comment-8144255 no longer applies to the latest plupload module release.
Comment #16
mikeytown2 CreditAttribution: mikeytown2 commentedYep, we are using the sandbox as well.