How do I set user upload folder path?

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.
8/25/2010 9:40:02 AM
Gravatar
Total Posts 116

How do I set user upload folder path?

I have created a user and added them to the Content Publisher group and made sure they can upload files/images, but I need to be able to alter the folder displayed as I built the site as the administrator (not realising about this) and put everything in /Data/Sites/1/uploadedfiles whereas my Content Publisher user goes straight to /Data/Sites/1/media - in future I will add things to here but is there a way to change the path for this site so that I do not have to move the files and reset the links of every page?  And assuming (hoping) that there is a way to do it will it be possible to add something to the user.config file so I don't have to change it everytime I upgrade to the latest version?

Regards

Andrew

8/25/2010 9:45:14 AM
Gravatar
Total Posts 18439

Re: How do I set user upload folder path?

If you have control of the server you can solve it as follows:

  1. copy the contents of the uploaded files folder to the media folder
  2. delete the uploadedfiles folder
  3. in IIS create a new virtual directory at /Data/Sites/1/uploadedfiles and make it point to the /Data/Sites/1/media folder

now new files will be using the media folder and any existing urls that point to the uploadedfiles folder will still work because it maps to the media folder

Hope it helps,

Joe

8/25/2010 9:58:13 AM
Gravatar
Total Posts 116

Re: How do I set user upload folder path?

Thanks Joe thats great, can I also add <add key="ForceAdminsToUseMediaFolder" value="true"/> to my user.config files to stop me making that mistake when setting up sites again?

Regards

Andrew

8/25/2010 10:04:50 AM
Gravatar
Total Posts 18439

Re: How do I set user upload folder path?

yes, that should do the trick, I use that on the demo site since everyone logs in as admin.

Best,

Joe

8/25/2010 10:20:20 AM
Gravatar
Total Posts 116

Re: How do I set user upload folder path?

Thanks for the confirmation Joe.

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