Set name of Media directory?

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.
10/22/2009 2:42:16 PM
Gravatar
Total Posts 2239

Set name of Media directory?

Is there a way I can set the media directory that is used for uploads? I have a number of sites where forcing the Admins to use the media directory would alleviate some confusion. The problem is that those sites are already using single root directory under data\sites\1 and it isn't media.

Thanks,
Joe

11/17/2009 10:14:19 AM
Gravatar
Total Posts 2239

Re: Set name of Media directory?

Hey Joe, Just wondering if you had any thoughts on this.

Thanks,
Joe D.

11/17/2009 10:38:17 AM
Gravatar
Total Posts 18439

Re: Set name of Media directory?

Hi Joe,

You can force the admins to use the /Data/Sites/1/media folder with this web.config setting:

<add key="ForceAdminsToUseMediaFolder" value="true" />

If the media folder exists you could copy files from it into the other folder they were already using, the delete the media folder, then create an IIS virtual directory at /Data/Sites/1/media that points to the folder they have been using.

Hope it helps,

Joe

11/17/2009 10:54:53 AM
Gravatar
Total Posts 2239

Re: Set name of Media directory?

Thanks Joe!

I should have thought of that. So simple.

Thanks again,
Joe D.

7/27/2010 11:23:49 PM
Gravatar
Total Posts 25

Re: Set name of Media directory?

Hi Joe,

Following up on this thread.  I hope it's a similar issue.

In data\sites\1, i deleted the media folder, created a new virtual directory called media in data\sites\1 and point it another folder sitting in another hard drive in the same machine.

However, when i open the file manager in the portal, the media folder is nowhere to be seen.

How can I fix this?

Users will be uploading reports via the portal, and I'd like to store the reports in another hard disk in case the server fails.

 

Thanks.

7/28/2010 11:52:22 AM
Gravatar
Total Posts 18439

Re: Set name of Media directory?

I would check the mojoportal log and the machine application log for related errors. There can be permissions issues when using a network share as a virtual directory. 

Hope it helps,

Joe

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