This component is modified and integrated following the author's original "Ain ASP component-less upload class".
It has the same functions as the componentless upload class, and has superior performance that cannot be compared with the componentless class.
The functions that can be realized mainly include: free extraction of form data, free restriction of upload extensions, free restriction of upload size, free selection of file saving type (random naming of original file name and time),
That is, you can upload a single file or upload multiple files in batches. At the same time, you can extract the binary data of the file to save it to the database (I personally do not recommend saving the binary data of the file to the database)!
For specific usage methods, please refer to the sample program in the demo!
After unzipping, double-click to run "Auto-register component.cmd" to automatically register the component.
Features of this category:
• Pursue simplicity as much as possible and reduce redundant code
• Comprehensive storage of information submitted by customers (ordinary forms, file field values, same form values)
• Accurately obtain error information during uploads
• You can choose the file saving method (save with original file name or save with new file name, the new file name is time + random number group
• The file saving function is simple, easy to call, and flexible (the saving path and saving method can be changed at any time)
• At the same time, the binary form of the file can be obtained, so that binary data can be saved to the database.
• Flexible use of this class allows simultaneous editing of form data and files (this is unachievable with general classes)
• It’s up to everyone to discover more uses...
• There are several very simple examples in the Demo. If you can master these examples, you will be able to use this class flexibly.
Expand