Closed (works as designed)
Project:
Privatemsg
Version:
6.x-2.x-dev
Component:
Code (privatemsg_attachments)
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Nov 2011 at 08:48 UTC
Updated:
22 Nov 2011 at 18:29 UTC
Comments
Comment #1
arithmetric commentedHave you also given the these roles the "view private message attachments" permission?
Can you attach a screenshot of the form error?
Comment #2
miccelito commentedthe view private message attachments permission was set correctly.
But I guess what was causing the form-file error...
Upload files (drupal's core Upload module) permission was set for 'authenticated user' and 'co-admin' which makes problem at File uploads admin page (/admin/settings/uploads) since the page will show only 'authenticated user' (and not the 'co-admin') settings.
Still, co-admins most of the times would need more file size cause a website may as well run other modules using file uploads i.e. Node Gallery, Plupload etc. As in my case where the co-admin wasn't able to upload a private message attachment since the default total file size had already been used by other modules.
So, it's better adding a new role i.e. 'upload' (upload by authenticated users) and auto assign that role (using the Auto Assign Role module). Then it's posibil to set default total file size per user by role i.e. 'upload' aka authenticated users 0.5MB, 'co-admin' 10MB etc.
Comment #3
arithmetric commentedYes, since this module uses the core upload functionality, the uploads for attachments are limited by the same rules as configured for core uploads.
Comment #4
rayvan commentedAlso important to note to select Yes for "List files by default" under admin/settings/uploads otherwise they won't be visible.