Any quick reason why the ZIP File I upload for the product feature would just disappear when I submit the form?
I have it set so users cannot automatically commit the file, someone would have to review and approve it before the node it published.
It is also set to overwrite on upload.
When I upload the file, I see it on the page, with a link to it. If I go to the server and look at the filesystem, it is correctly located in the Private Files directory. I can open it on the server and verify it is the correct file.
But when I hit SAVE or SAVE AND CONTINUE, I get a message stating "Product blah has been updated." but the file is missing from the edit screen. And also from the file system.
I cannot find where/why this is happening. Any hints?
Comments
Comment #1
taps7734 commentedLittle more info.
When I save the product node, I get a message stating:
The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename.That error message comes from /includes/file.inc line 249 and there is supposed to be an actual filename after the word file. it should say
The selected file /var/www/vhosts/xxxxx.com/data/files/FileName.zip could not be copied, because no file by that name exists. Please check that you supplied the correct filename.but that part is blank.
In my log files I am seeing many entries every time I attempt to upload file.
First I entry 4 times in a row with the same date/time:
FileField was trying to display the file /var/www/vhosts/xxxxx.com/data/files/FileName.zip, but it does not exist.Then I see the following error 1 time:
FileField Paths failed to move file (/var/www/vhosts/xxxxx.com/data/files/FileName.zip) to (product/5/FileName.zip).Then I see the other error message again 12 more times.
FileField was trying to display the file /var/www/vhosts/xxxxx.com/data/files/FileName.zip, but it does not exist.I have checked. After I Upload the file, but before I submit the node, the file *IS* there.
Comment #2
taps7734 commentedAlso, if I remove MarketPlace and do this with just a standard UberCart setup with the same options set, the file gets copied where I want it to.
Comment #3
taps7734 commentedI have done a little more playing around. Granted, I am not too fluent in PHP, but I can fumble around a bit. I was trying to follow the progression here and I think I may be on to something.
in the function mp_file_form_submit, if I disable one line, mp_file_clear_filefield, it saves the file as necessary. But then there is no way I can commit the files. So something in the logic is incorrect. I just dont know what yet.
Correct me if I am wrong, but doesnt this part say that if on the initial upload, the user has the right to sell and does NOT commit the file, then clear the filefield info?
What if the user has the right to sell but not commit? Then shouldnt the file be left where it is so that a moderator can view it later and decide to commit it or not?
Comment #4
sketman commentedHi Taps7734,
I have the exactly same problem.
Did you please found solution?
Thank you...
Comment #5
avpadernoI am closing this issue since it's for a unsupported Drupal version.