Documentation
- Overview
- Applet configuration
- Exposed interface
- JavaScript callbacks
- Custom attributes
- Partitioned upload
- Resume broken uploads
- GUI customization
- Internationalization
- Running uploader as standalone application
- Server side upload handling
- Zipped upload
- Scaled images upload
ASP.NET upload handler
ASP.NET uploader is contributed by 3rd party and not supported by author of this site. Solution may contain outdated jumploader JAR version, use obsolete methods etc.
Below is ASP.NET solution kindly provided by Michael Wright.
The solution is broken into 2 parts, the first is a test website that demonstrates the control and how you would use the control on an ASP.NET webpage, as well as how to setup the environment if you choose to use the control library. The second is the actual Class library that holds the Jumploader control and the sample handler as well as the interfacing system I created to allow you to either use the builtin versions or to create your own versions. Most of the code is pretty straight forward. I will describe how you setup a website to use the control since there are a few things you need to add to the web.config and to the global.ascx.
A version of jumploader_z.jar is in the JumploaderWrapper.dll as an embedded resource, so you don't have to worry about if you forgot to copy it over or not, this is not an issue as you don't ever have to use it or if you just want to remove it from there. If you want to use it however, I have a ResourceHandler that will retrieve the jar from the dll. To use these enter the following into your web.config:
<configuration>
<system.web>
<httpHandlers>
<add verb="*" path="JumploaderResource.asx" type="JumploaderWrapper.ResourceHandler, JumploaderWrapper" />
<add verb="*" path="JumploaderUpload.asx" type="JumploaderWrapper.UploadHandler, JumploaderWrapper" />
</httpHandlers>
</system.web>
</configuration>
Then if you decide to use the JumploaderUpload.asx handler for file uploading, it requires you to give it the interface object that you want it to use when saving the files, you could put this anywhere, but the best place is in the global.ascx, Application_Start event so you are guaranteed it will be setup correctly before it is run.
void Application_Start(object sender, EventArgs e)
{
//
// Below is the example that uses the filesystem.
//
JumploaderWrapper.Samples.FileSystemFileSaver saver = new JumploaderWrapper.Samples.FileSystemFileSaver();
saver.BaseDirectory = this.Context.Request.PhysicalApplicationPath + "FileSave\\";
JumploaderWrapper.UploadHandler.FileSaver = saver;
}
Download jumploader_aspnet.zip (1.15M).