If I use tokens for the upload directory, the directory creation (and thus the file upload) fails because
file_prepare_directory() gets called with $options=FILE_MODIFY_PERMISSIONS. If I use the normal media file selector widget, tokens work fine.

The error message I get is:
"The specified file temporary://lsghfhsdgdsfh.tmp could not be copied, because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log."

Comments

egarias’s picture

I have the same problem.
Media multiselect is unnable to create folders, once the folder is created it works ok

gmclelland’s picture

firfin’s picture

f I use tokens for the upload directory,

How/where do you set the upload directory? I don't see it, not when uploading file fields, nor with file entity ?

czigor’s picture

I can set the upload directory at the field settings form.

fangel’s picture

Status: Active » Postponed (maintainer needs more info)

Is this still a problem with the latest versions of media and file_entity?