ASP Script
This ASP script is used both for uploading and downloading of files on an IIS server. This script is the work of Free ASP Upload. I modified it to be used with this application. When the script is installed and you the type the full address of the upload webpage, you will get something like this:
The script displays the upload section where you can select a file and upload it. The second part of the screen displays the files that are uploaded and you can download this wherever you want. You can consider this as a resting place for your files be it reports or backups of data.
In the last section, the files that are uploaded is displayed again, but in a different format. This is the format the android application uses to find the files that can be downloaded. The words just before and just after this file list are used as markers for the android application to find the files. If you modify this script, just take this into account. (This script can be used to implement your own cloud storage. It is free for use.)
The ASP script is as follows:
Download
This file is also needed:
Download
The procedure to install this on an IIS server is as follows:
- Install IIS on your workstation or PC if it is not.
Start->Control Panel->Add Remove programs for Windows XP
Start->Control Panel->Programs and Features for Windows 7
In the program click on "Turn Windows features on or off.
In "Internet Information Services" select "Web Management Tools" and all the features under "World Wide Web Services"
In "Application Development Features" select "ASP" and "CGI". Under "Security" enable "Basic Authentication" and
Click on "OK". IIS will then be installed. It may take a while.
Exit the Control Panel.
- Open explorer, go to your "C:" drive, then the "inetpub" folder and then "wwwroot" (C:\inetpub\wwwroot). Create a folder with the name android and in the android another folder called upload. Download the two files from above and save them in the android folder. Make sure that the files names are correct and that nothing was added to the file names like .txt.
- All the IIS management is done from one location. Right-Click on "Computer" or "My Computer" and select "Manage". In the left side pane, go to "Services and Applications". There you will find "Internet Information Services". Under "Default Web site" you should see an "android" folder and under that an "upload" folder.
- Authentication should be set. Double click on "Authentication". Disable "Anonymous Authentication" and enable "Basic Authentication". You can now use any user that was created on this machine's username and password to login.
- Mime types must be configured. Double click on "MIME types" and click on add to add the extensions .CSV, .GPX, .DB with MIME type "application/octet-stream". Without this you won't be able to download the uploaded files.
The URL you should use in the setup screen will then be something like
http://some_sample_domain.com/android/index.asp