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!

CommentFileSizeAuthor
screenshot-plupload-error.png34.25 KBlorenz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gmclelland’s picture

I 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

gmclelland’s picture

Project: D7 Media » File Entity (fieldable files)

Changing to the file_entity issue queue.

Devin Carlson’s picture

Status: Active » Fixed
lorenz’s picture

Glenn, 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.

gmclelland’s picture

@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?

lorenz’s picture

Thanks everybody, it works with the latest media and file entity modules.

Automatically closed -- issue fixed for 2 weeks with no activity.