I need an image folder where is the best place to put it.

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
10/13/2012 1:10:58 AM
Gravatar
Total Posts 1

I need an image folder where is the best place to put it.

Hi

I've just added a custom form for users to submit articles, and images for the article. I want all the images to go into one folder for every user.

The way it works is when a user first submits and article, there's no fileupload control on the form so he just submits the article text , once the form is submitted the article data is stored in the database, the user can now edit his submission which now does show a fileupdate control and as he uploads images the images are prefixed with "articleId_"  so something like "1232_myImage.gif" , "1232_my2ndImage.jpeg" and "1232_my3rdImage.gif"

So what I want to do is store all the images under one Folder

Where the best place to put this folder, is it under ~/Data/Sites/1/MyFolder or directly under the root folder - cause I'm not sure, where's the best place to make it simple to access when you need to display the images.

 

 

10/13/2012 7:11:08 AM
Gravatar
Total Posts 18439

Re: I need an image folder where is the best place to put it.

I'd put it under /Data/Sites/[SiteID]/media/myfolder

Less priveledged users can browse starting at the media folder so if you put it higher probably only admins can access it in the image browser.

Hope that helps,

Joe

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