Description: The program uses the jquery framework to achieve a small file upload.
Two areas that need explanation
First, how do you know listening to this file is the file upload mechanism is very simple to achieve, is to let asp.net generate a unique
guid, id number that is unique, taken out by ajax assigned to a hidden field second, how to get guid logo file information?
Achieved through the asp.net caching mechanism, the process of uploading, will continue to upload information to the cache and write until the file upload is complete, while in other
Outside a guid for the cached information through the information, including information you want, such as the number of bytes uploaded and consumes much time and so on.
Program core page
index.htm is the file upload page, submit the form to the UploadHandler directory Default.aspx, in order to achieve file uploads.
ProgressHandler directory three files to Abort.ashx, GenericGuid.ashx, Handler.ashx functions are: to take under the Guid
Con
To Search:
File list (Check if you may need any files):
Progressbar\App_Code\DownloadingFileInfo.cs
...........\........\FileUploadModule.cs
...........\........\LogUtil.cs
...........\........\UploadUtil.cs
...........\Global.asax
...........\index.htm
...........\Log\log.txt
...........\ProgressHandler\Abort.ashx
...........\...............\GenerateGuid.ashx
...........\...............\Handler.ashx
...........\Scripts\Ajax\ajax-progress-upload.js
...........\.......\....\GuidGet.js
...........\.......\jquery-1.4.2.min.js
...........\.......\jquery-ui-1.8.2.custom.min.js
...........\.......\ljq.lib.js
...........\.tyles\base.css
...........\......\Site.css
...........\UploadHandler\Default.aspx
...........\.............\Default.aspx.cs
...........\Web.config
...........\Scripts\Ajax
...........\Accessory
...........\App_Code
...........\App_Data
...........\Log
...........\ProgressHandler
...........\Scripts
...........\Styles
...........\UploadHandler
Progressbar