Image Upload

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.
4/9/2012 12:01:47 PM
Gravatar
Total Posts 154

Image Upload

How can I allow authenticated users to upload images to either a photo library or a folder on the server without giving them full access to the photo or file component.  Just like the local avatar system.

4/9/2012 2:25:27 PM
Gravatar
Total Posts 18439

Re: Image Upload

You can enable users to upload files to a user specific location as discussed in the article Allowing Users To Upload and Browse files. If you need more control than that you'd have to implement something custom.

4/10/2012 7:29:10 AM
Gravatar
Total Posts 154

Re: Image Upload

I've been reviewing that but I haven't had luck with getting it working.  What type of feature would I add for them to be able to upload?  Shared files, HTML, or image gallery?

4/10/2012 10:28:27 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Image Upload

The way you describe it, I believe it will require a custom developed feature. If I understand correctly, you want something like shared files or image gallery, but rather than pulling from a single pooled folder, they would pull from individual user folders. So if you are a developer or can hire someone to do the work, you could clone those features and replace the file management sections with logic that behaves as the file manager does when the user is in a role with the permission "Roles than can browse and upload but only in a user specific folder". The specific user folders would be created under the feature main data folder, and the feature would gather the images/files from each of those subfolders for display. Items that originated in other users' folders would have to be locked down as well so they couldn't be changed or deleted by unauthorized users.

Jamie

4/19/2012 4:36:56 PM
Gravatar
Total Posts 4
There is no place like 127.0.0.1

Re: Image Upload

Hi Joe

i have the 2.3.8.1 version and windows 2003 server and mssql 2008 express.

I enabled the "Roles that can browse and upload files" role for the authenticated user and that didnt show the link to upload any images in the  Image gallery.

So I'm interested if this should work or not.
And also how to enable multiple files upload for the image gallery for authenticated users.

Best regards Mats

4/20/2012 7:39:37 AM
Gravatar
Total Posts 18439

Re: Image Upload

Hi Mats,

Those permissions are for people to upload files in the wysiwyg editor and/or file manager, it does not give permission to upload to Image Gallery.

Uploading images to Image Gallery requires the user to be in an allowed page edit role or allowed edit role on the instance of Image Gallery. Note that users in those roles can also delete images.

If you are allowing strangers to register on your site I would not let authenticated users have any edit permissions because they can do bad things and I would be cautious about letting stranges upload files in general. See also the notes about what mojoPortal is NOT designed for on the bottom of our about page.

Hope that helps,

Joe

4/20/2012 11:49:38 AM
Gravatar
Total Posts 4
There is no place like 127.0.0.1

Re: Image Upload

Hi Joe

It sure helps me to understand why it didnt work Glad

This site that i'm building is intended for a limited number of people that meets once a year to hunt moose.
Since theese guys have just discover internet I want to make it as easy as possible to upload images to our gallery.

I have tested Umbraco but the users find it hard to update.

So looking at mojoPortal it looks pretty straigth forward if I only can set the permissions rigth.
Whats your recommended setting if I want them to be able to upload one or multiple files to the image gallery?

Best Regards Mats

4/20/2012 12:09:12 PM
Gravatar
Total Posts 18439

Re: Image Upload

Hi Mats,

If it is a small group of people you know and trust what I would do is create a custom role under Adminsitration > Role Administration

Then I would add each of those users to this role.

Then I would click the settings link on the Image Gallery and on the Security tab I would check the custom role so it has edit permissions.

Then anyone of those folks who login will be able to upload images into the Gallery, they will see links that allow them to edit and upload since they are in the allowed edit role.

You "could" use the "Authenticated Users" role but only if you are not allowing other people to register on the site. ie you could create the user accounts for the trusted friends then uncheck the box in Site Settings for Allow New Users to Register.

But I think it would be cleaner to have a custom role because later you may want to allow people to register on the site without granting them any permissions to edit anything.

Hope that helps,

Joe

4/20/2012 12:30:12 PM
Gravatar
Total Posts 4
There is no place like 127.0.0.1

Re: Image Upload

Ok thanks Joe

What about uploading multiple files?
How can I make it work for this role?

BR Mats

4/20/2012 12:40:25 PM
Gravatar
Total Posts 18439

Re: Image Upload

Hi Mats,

The Bulk Upload link allows uploading multiple files, but to be able to select multiple files at once requires the use of NeatUpload. NeatUpload is built into mojoPortal but it only works in Full Trust hosting. If you look under Administration > System Information and it says Full Trust there rather than Partial Trust, you could enable NeatUpload by:

  1. Rename Web.config to Web.mediumtrust.config
  2. Rename Web.fulltrust.config to Web.config
  3. transfer any customizations such as machine key from the previous web.config to the new one

Hope that helps,

Joe

4/21/2012 12:59:37 AM
Gravatar
Total Posts 4
There is no place like 127.0.0.1

Re: Image Upload

Hi Joe

I did the suggested changes and now it works.

Thanks/Mats

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