Hello,
I initially posted this issue in the plupload issue queue: http://drupal.org/node/1930240
I am using Plupload with Media module.
When I upload files at file/add the plupload GUI says that all the files are uploaded correctly and then redirects me to the following URL (see attached screenshot):
/admin/content/file/edit-multiple/499%2520500%2520501%3Fdestination%3Dadmin/content/file
On this page, the file names are wrong. Instead of myimage.jpg the files are renamed to something like
p17kgjkpds131scuadit1bdm6s26.tmp.
When I go to the files dir on the server the file names are made into directories and inside the directory (f.e. myimage.jpg) is a file p17kgjkpds131scuadit1bdm6s26.tmp.
I am using private upload method and my private dir is outside the docroot. File Uploads without the plupload module are working.
I am using the following module version:
media module 7.x-2.0-unstable7+25-dev
file entity 7.x-2.0-unstable7+39-dev
plupload integration module 7.x-1.1
Thank you for your help!
Comment | File | Size | Author |
---|---|---|---|
screenshot-plupload-error.png | 34.25 KB | lorenz |
Comments
Comment #1
gmclelland CreditAttribution: gmclelland commentedI just started seeing this problem on a fresh install as well in my Ubuntu environment.
I see the problem when I try to upload files at file/add. Everything works fine when you disable the plupload module.
I think there is a problem with the latest commit http://drupalcode.org/project/file_entity.git/commit/15f63f5c6ba77a9bf78...
This took me a good while to figure out, here is what worked for me. Delete the tmp files form admin/content/file and make sure they are deleted from files directory as well at sites/default/files(or whatever yours is). Note: If you don't delete the tmp files or folders in your sites directory then this won't work.
Download the previous commit at http://drupalcode.org/project/file_entity.git/commit/a5a308e1d1bba65beef...
Clear caches and then test if you can upload files at file/add.
It should be working now.
Hope that helps,
-Glenn
Comment #2
gmclelland CreditAttribution: gmclelland commentedChanging to the file_entity issue queue.
Comment #3
Devin Carlson CreditAttribution: Devin Carlson commentedReverted the commit and reopened #1904818: Multi file upload doesn't prepare destination directory.
Comment #4
lorenz CreditAttribution: lorenz commentedGlenn, thanks for your help. Unfortunately this is not an option for us because we have a running system with many files already uploaded. I would appreciate if anybody has a solution for this which doesn´t involve deleting nodes.
Comment #5
gmclelland CreditAttribution: gmclelland commented@lorenz - I didn't mean delete all the files, just the tmp files and temp folders in your site's file folder. I noticed that sometimes if I uploaded a file named dog.jpg it would create a temp file like aldereqreqqer.tmp and folder called dog inside of my site's files directory. So I had to delete the dog folder and the aldereqreqqer.tmp before I could upload another file called dog.jpg to retest.
Your existing files should still be working. I only saw this problem when new files were added.
Anyways, the problem should be fixed at the moment because in the newest dev release the problem commit was reverted.
Can you try it with the latest dev release of File Entity-2.x-dev and Media-2.x-dev?
Comment #6
lorenz CreditAttribution: lorenz commentedThanks everybody, it works with the latest media and file entity modules.