Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Error occurs even with access rights granted for anon users to use the module ("Allow user to upload files via Plupload.").
Works well for authenticated users with the same access rights.
Could the error come from the fact that anonymous users have a limited access to the file directory used to temporarily store the uploaded files?
Comment | File | Size | Author |
---|---|---|---|
error plup.png | 18.28 KB | Louis Bob |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedNo. Anonymous users cannot use Plup module. If you want to change that you have to edit the code. Find the plup_upload_access() function on #32 in plup.module and in it there is:
Change it to:
That should do the trick.
Reason for this behavior is to protect your site from attackers being able to upload files into your server and run malicious code. When you start uploading files drupal wil add unique token to the request for the current user and the receiving page will validate this token.
I discourage you to change this behavior due to the security issue but if you really need this no one's stopping you.
Comment #2
Louis Bob CreditAttribution: Louis Bob commentedThanks a lot for the quick response.
It works now! ... but up to another issue when previewing the node (I'll open a new issue for it).
Comment #3
tnvyen CreditAttribution: tnvyen commentedAdmin also gets the same error
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedThat would most definitely not be this case.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedI'm logged in as Admin user and getting this same error. Any advice? Please?
Comment #6
sgtsaughter CreditAttribution: sgtsaughter commentedI am also logged in as admin and receiving this error.