JavaPowUpload Installation (for ASP.NET)
- Extract JavaPowUpload distribution package at web server:
- Open at Windows Explorer IIS server's root folder (by default it is c:\Inetpub\wwwroot\)
- Extract JavaPowUpload zip archive to new folder JavaPowUpload inside root folder. You can use any name for folder or place it not in the root. But we using such placement and name as default in this manual.
Screenshot
- Create "Application" at IIS:
- Open IIS console: Control panel->Administrative tools->
Internet Information Services->Expand "Default web site"
- For IIS 5 and 6: Expand JavaPowUpload->FileProcessingScripts->ASP.NET node, Right mouse click at the "CSharp" node and select "Properties" in context menu.
In the CSharp properties dialog box open "Directory" tab and click Create button nearby Application name field.
Screenshot
- For IIS7: Expand JavaPowUpload->FileProcessingScripts->ASP.NET node, Right mouse click at the "CSharp" node and select "Convert to Application" in context menu.
In the new dialog box click "ok".
Screenshot
-
Be sure that other applications that uses this application pool uses the same .NET framework version. Different versions of .NET at the same pool will rise error!
- Check that .NET 2.0 or 3.5 enabled for application (only for IIS 5 or 6):
- Open IIS console: Control panel->Administrative tools->
Internet Information Services->Expand "Default web site". Expand JavaPowUpload->FileProcessingScripts->ASP.NET node, Right mouse click at the "CSharp" node and select "Properties" in context menu.
In the "CSharp" properties dialog box open "ASP.NET" tab, make sure that in the ASP.NET version fileld value 2.0.xx or 3.5.xx is selected.
Screenshot
- Check NTFS permissions for "FileProcessingScripts\ASP.NET\CSharp\UploadedFiles" folder
- By default ASP.NET application works under NETWORK SERVICE user at IIS6 and IIS7 (or under ASPNET user at IIS5).
You should set NTFS "Write", "Read and execute", "Read", "List folders content" permissions for NETWORK SERVICE user (or ASPNET user at IIS5) to "UploadedFiles" folder.
Also set the same permissions to the web.config files in all top level folders (like c:\Inetpub\wwwroot\web.config) !
Screenshot
-
Open at your browser http://localhost/JavaPowUpload/index.htm to run samples
Note! Remember that the folder UploadedFiles for placing uploaded files is a potential source of vulnerability, therefore always prohibit in server settings scripts execution in it, otherwise intruder can upload and execute malicious script.