Calling the File upload control

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/22/2009 7:10:23 AM
Gravatar
Total Posts 108

Calling the File upload control

Hi,

I've been making a very basic product page with a admin panel that uses a Details View component.

I want to make a upload field so a user could upload a image or a thumbnail just like when you select the image button in the FCK Editor.

Is it possible to just call the file upload dialog box so they can either upload a new image or select one from the server?

Any help would be great.

 

Many Thanks

Tim

6/22/2009 7:15:19 AM
Gravatar
Total Posts 18439

Re: Calling the File upload control

Hi Tim,

The FCKeditor upload is its own thing and can't be leveraged easily for other purposes. You can make an upload using NeatUpload, it doesn't work in Medium Trust but if commented out in Web.config it degrades gracefully to built in ASP.NET upload functionality. You can study example code using NeatUpload in the SharedFiles module or Admin/FileManager.aspx or in the WebStore feature where I use it for product uploads. 

Hope it helps,

Joe

6/22/2009 7:27:34 AM
Gravatar
Total Posts 108

Re: Calling the File upload control

Hi Joe

Thanks for the quick reply, I'm working in a Medium Trust so does that mean i wouldnt be able to use it NeatUpload? sorry i didn't quite understand the bit about commenting out in web.config.

Shall have a look at the filemanager.aspx file now.

Thanks again

Tim

6/22/2009 7:33:55 AM
Gravatar
Total Posts 18439

Re: Calling the File upload control

If you only ever plan to deploy in Medium Trust  you can just use the ASP.NET file upload, if you plan to possibly deploy to full trust its worth using NeatUpload because then in full trust you get the benefit of the upload progress bar for the user experience and not having to store the file in server memory which can be important for large upploads. If you implement it using NeatUpload then in medium trust you have to disable NeatUpload in Web.config, but disable is a misnomer becuase upload will still work as NeatUpload degrades to normal ASP.NET upload if disabled.

Hope it helps,

Joe

6/22/2009 7:36:59 AM
Gravatar
Total Posts 108

Re: Calling the File upload control

Got ya,

Thanks again! Have a great day!

Tim

6/22/2009 7:45:20 AM
Gravatar
Total Posts 108

Re: Calling the File upload control

ps. I guess this would be more of a feature request, but a photoalbum upload/browse module would be a fantastic addition to mojoportal.

6/22/2009 7:47:20 AM
Gravatar
Total Posts 18439

Re: Calling the File upload control

The Image Gallery and Folder Gallery features do allow upload and they use NeatUpload.

6/22/2009 8:02:24 AM
Gravatar
Total Posts 108

Re: Calling the File upload control

sorry what i was referring to was something i used in my old companies cms.

You could browse images on the server in the form of thumbnails, and upload new ones if need be.

At the moment its a bit of a pain if you had 100 images in a products folder and couldnt remember the filename of the image you wanted to select, you'd have to go back and forth until you selected the right one.

T

6/22/2009 8:36:57 AM
Gravatar
Total Posts 18439

Re: Calling the File upload control

I agree browsing images by thumbnail would be much nicer. I just have not had a chance to look into implementing something like that yet.

Best,

Joe 

6/22/2009 8:47:47 AM
Gravatar
Total Posts 108

Re: Calling the File upload control

Neverending list i bet lol

I can always demo my site once its launched an show what i've done, though i doubt my coding will be up to the standards you'd require lol

Thanks again

Tim

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