Upload text file to server

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.
6/24/2012 11:11:03 AM
Itz
Gravatar
Total Posts 2

Upload text file to server

I am working on a custom module and I will need the ability to upload a text file to the server for further processing and then ultimately deleting this file when I am done processing the information.


So my question is dose mojoPortal have any built in controls that will allow for a user to pick a text file from there computer and upload it to a destination folder on the server for processing.

Thanks

Mike

6/25/2012 9:47:17 AM
Gravatar
Total Posts 18439

Re: Upload text file to server

Hi Mike,

For almost any development task that you might want to do in your custom features you can find example code that does similar things in existing features in the mojoPortal source code. For this specific question the code for the file manager, the image gallery, or webstore all provide file upload functionality so you can study the code for one or more of those features to learn how to do it in your own feature.

If you are working with the source code you can browse the code more easily, if not you can browse our source code repository online.

Here are some links to good examples:

The EditImage page is a better example for uploading a single file whereas the FileManager is a good example of uploading multiple files at once.

Note that we use NeatUpload to support uploading multiple files at once and it also supports a progress bar during upload. However it only works in full trust hosting, in medium trust NeatUpload is disabled in web.config and degrades gracefully to the standard asp.net way of uploading which doe snot have a progress bar and does not support multiple files at once.

Hope that helps,

Joe

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