Hello,

I updated file entity to the latest dev version due to a problem with plupload, see http://drupal.org/node/1930950.
Before the update, uploading files using files/add was working.

Now when I try to upload the file, it gets uploaded to the server, the node is created and listed under admin/content/file but when I click on it, the file is not displayed.
The html output for the node de/file/123 seems correct: it includes an img tag with the path de/system/files/styles/medium/private/myfile.jpg?itok=4DLdNg-1. When I copy&paste this URL in my browser (logged in as user 1) I get an "Access denied" error.

When I upload the same file using the media module from inside a blog post, everything is working fine: the file is displayed and user 1 can access the file directly via the absolute path. This is why I think this is not a theming issue.

I am using private upload for files:
Files uploaded using media browser are saved to a folder outside the docroot: /private-files/media/. I have set the destination directory in the field settings of my content type "blog".
Because I cannot set the upload destination when I upload files directly using files/add (see issue http://drupal.org/node/1563886), files uploaded this way go to /private-files/.

Module versions:
File entity: 7.x-2.0-unstable7+43-dev
Media module: 7.x-2.0-unstable7+25-dev
Drupal: 7.20

Thank you for your attention!

Comments

devin carlson’s picture

Status: Active » Closed (duplicate)

Since this is happening with private files, I believe that this is a duplicate of #1420812: Files from private stream cannot be downloaded.

lorenz’s picture

Thank you Devin, the patch in the other post worked for me!