Hello,

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 an 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 media module 7.x-2.0-unstable7+25-dev.

Thank you for your attention

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

Comments

lorenz’s picture

Title: Plupload » Creates .tmp dir instead of image after upload
lorenz’s picture

Title: Creates .tmp dir instead of image after upload » Creates unusable .tmp file inside a new dir named after image name instead of image file after upload
slashrsm’s picture

Status: Active » Closed (works as designed)

Plupload always uploads files as .tmp for security reasons. It is up to module using PLupload to move and rename this files properly. Ask in the issue queue of the module you are using with Plupload.

lorenz’s picture

Thanks! I opened an issue in the media module issue queue: http://drupal.org/node/1930950

gmclelland’s picture

FYI... I believe this is related to the latest commit in the File Entity module. You can see my comment here http://drupal.org/node/1930950#comment-7125452