Permission to upload files

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
11/3/2009 3:01:23 AM
Gravatar
Total Posts 123
/Mats Lillnor

Permission to upload files

Hi,
I have trouble granting permission for a user to upload images into an image-gallery (simple folder version).


I want to give a person the ability to upload a number of images to a folder in my site, but otherwise have no priviligies.

On a specific page I have created a content of type Simple folder image gallery.
I have created a user account.
On the security tab of the gallery, I have given the specific user permission to edit content.

When the user logs on and clicks on Edit Content, there are no buttons for "Upload images", only for "Set the root folder of this gallery".

How can I give this user permission to upload the files?

 

I know there was a specific thing to modify in web.config to assign roles the possibility to upload files, but I cannot recall what it was. I didn't put it into user.config, so I probably have destroyed that by overwriting the web.config file during an upgrade. I have searched the forums but cannot find it. I created a role for my bloggers with this ability and it worked back then and they could upload files to subfolders under the "/Data/Sites/1/Images"-folder, but now suddenly (after upgrading) the bloggers upload their files to a (new?) folder called "media" instead. This seames to have changed between some versions 2.3.1.0 to 2.3.1.9 (?). This is not a big issue, but are there detailed change-logs or upgrade-documentation that specify all changes so one can be perepared and not apply an upgrade that breaks the current functionality? Joes blog only tells the big picture, not all the tiny details like this.

 

BR

/Mats

11/3/2009 7:32:21 AM
Gravatar
Total Posts 190

Re: Permission to upload files

Hi Mats,

Have you checked the Permissions tab under the Security tab in the Site Settings section of the Administration menu? There are some permissions there that would be relevevant. You may need to grant upload permission for the role that your user is assigned to.

John

11/3/2009 7:45:14 AM
Gravatar
Total Posts 18439

Re: Permission to upload files

Currently it only allows the admins or content admins to upload. The bulk upload in the folder gallery was only added recently. Previously this feature only allowed upload by ftp which meant a trusted/privileged user therefore I kept it secure by limiting uploading to admin or content admin.

I'm not sure what the best solution would be because the user can choose the folder where the images come from so if we allow the user to upload then he can upload to any folder beneath the /Data/Sites/[SiteID]/FolderGalleries folder. Having this ability to choose the folder that is the root of the gallery is fine when he does not have upload permission because he can't hurt anything he can only choose which folder to show images from. But if we allow him also to upload, then as I say it becomes more problematic because the combination of being able to choose the folder and upload means he can upload anywhere beneath the mentioned absolute root of the site folder galleries.

I'm open to suggestion of how the logic should work as long as its not too complicated.

Maybe the logic should be that if the user has only permission as a specific user not by roles then he cannot change the folder of the gallery but can only upload?

Best,

Joe

11/3/2009 8:10:07 AM
Gravatar
Total Posts 18439

Re: Permission to upload files

I am adding 2 new settings to the Folder Gallery for the coming release. One setting for allowing the edit user to upload and one for allowing the edit user to change the folder. By adding the user to a role that is not allowed to edit feature instance settings you could block a user from changing these settings and therefore control it more flexibly.

By default non admin/content admin users will be able to change the folder but not upload but you could configure it to allow upload and not allow changing the folder, or you can allow both.

Best,

Joe

11/4/2009 2:24:44 AM
Gravatar
Total Posts 123
/Mats Lillnor

Re: Permission to upload files

Absolutely perfect!

 

(Btw, what is the "Path:p" that is shown at the bottom of the text editor when you write something here. It is supposed to be there?)

/Mats

11/4/2009 7:08:33 AM
Gravatar
Total Posts 18439

Re: Permission to upload files

That is a feature of TinyMCE, it shows you what the current (depending on where the cursor is) html element container is so "p" is <p></p>, if you were editing a table it should say table or a div should say div. I really only intended to enable the word count but it seems you cannot have it without also having Path. It seems that when you show the status bar it always includes Path and you must show the status bar in order to show the word count. Notice also the little drag handle at bottom right next to word count lets you resize the editor.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.