Shared Files vs Download Zip

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
7/8/2008 11:03:43 AM
Gravatar
Total Posts 36
Anchorage, Alaska

Shared Files vs Download Zip

The Shared Files Module manages files with a guid and the config extension. This is great for sharing.

But, I want to create coding example articles and allow people to download the full source code. I know how to create the articles using the HTML module. After that, I do not know what the best approach is for downloading the files. Can you give me some direction to take?


 

7/10/2008 6:12:58 AM
Gravatar
Total Posts 18439

Re: Shared Files vs Download Zip

If you want to limit the downloads by role or by whether the user is signed in, you should use the shared files module and put it on a page that either requires a role or requires the role "Authenticated Users" which just means anyone who signs in. Once its on the page you can right click the download link and choose copy link location then paste the link into your article.

If you want to make the files available regardless of being signed in you can use a normal zip file. You can upload it using File Manager, but then it will be located beneath /yoursiteroot/Data/Sites/1/ as that is the top level folder you can get to with the file manager. If you upload the file with an FTP client like FileZilla, you can put the file anywhere, so it could be in the Data folder or maybe you make a folder /Data/articlefiles, or you could even put them in the root to make the urls to the files easy like http://yoursiteroot/yourzip.zip

Hope it helps,

Joe

7/10/2008 9:03:53 PM
Gravatar
Total Posts 36
Anchorage, Alaska

Re: Shared Files vs Download Zip

Great.  That answers my questions.

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