Stay in the folder after file upload

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
2/3/2012 9:55:08 AM
Gravatar
Total Posts 5

Stay in the folder after file upload

In the shared file feture, after I uploaded a file to a subfolder, the page changed to the root folders. It would be better if it stays in the subfolder where files are uploaded.

In addition, could you please give an option to the admin to decide if those uploaded files are in their original file names on the server, and also keep the folder strucure? In the intranet evironment, it is only for internal members to share documents, so security might not be an issue. I prefer to see the original folder stucture and file names on the server, so it is easy to copy those files in windows explorer on windows server. Alternatively, could you provide a function to export files to the file system on the server with their folder structure and original file name? And also an option if compressed to a zip file when exported. I think that would be very useful.

Thanks,

Weijun

2/3/2012 12:52:18 PM
Gravatar
Total Posts 18439

Re: Stay in the folder after file upload

Hi Weijun,

Unfortunately I don't have a solution to keep in the same folder after uploading. The problem is that the folder navigation is done by using an UpdatePanel but file uploads don't work inside the updatepanel, it requires full postback, and then after upload we redirect to the current url to get out of postback so that if the user refreshes the browser it will not re-post the form. As a resuklt we lose the state of the page that was maintained inside the update panel.

There may be future improvements to Shared Files or I may build a shared Files Pro add on product at some point, but the current feature was designed to provide file protection so it stores file on disk using a .config extension and restores the true file name at the time of downloading and the user must be in a role allowed to view the page to get access to the file and cannot access it directly by url.

For files that don't need this protection you could just as easily use a plain Html content feature and you can use the editor toolbar item for links whcih allows you to browse files on the server and link to them as well as upload files and link to them.

Best,

Joe

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