PK Sword: An ASP file, about 20KB, a pure ASP component-free upload program, supports customized upload of files with any extension, can control the upload size, upload to a designated folder, whether to overwrite the upload, whether to rename, and can use ASPJPEG The component performs various operations such as thumbnailing and adding watermarks, and uses a unique cache pre-storage mechanism to quickly and stably save local images.
Function introduction:
1. No component image upload, supports uploading with any extension;
2. You can control the size and type of uploaded files;
3. It can be uploaded to a designated folder and supports the creation of custom folders;
4. Fully open source and upload source code for easy expansion and modification;
5. Support local image upload, support remote image upload, and support viewing uploaded images;
6. You can choose to insert uploaded pictures;
7. With the ASPJEPG component, the thumbnail function can be realized, and the text watermark function can also be realized;
8. You can customize the name of the uploaded file, the system can automatically generate the file name, and you can upload it directly according to the original file name;
9. Viewing uploaded pictures supports page turning display and insertion;
10. Direct frame calling, convenient and fast, can be directly integrated into any ASP system without modification.
Pay attention to modifying all the items marked with ★ in AsaiUp.asp. Since most local computers use the GHOST system with very strict permissions, it may not be possible to test the upload. You can directly upload the space for use.
Calling example description:
Upload interface call example:
Call details:
fom=The name of the form where the return value is located. You can leave it blank for normal uploads, for example: asaiform
foi=The id of the text box where the return value is located. You can leave it blank for normal uploads, for example: pic
fm=Whether to rename, ""null means renaming the file randomly, "Asai" means naming according to the uploaded file name, others means naming according to the specified file name, for example: Asai
fd=Specify the save folder, supporting both relative and absolute addresses. Leave blank to upload to the default folder (can be set below), for example: ../uploadfile/
fs=relative to the picture viewing frontend, the location of the upload folder, leave the same value blank, for example: uploadfile/
fl=The type of uploaded file, supports unlimited types and unlimited extensions, the following codes need to be set, for example: 1 picture 2 animation 3WM media 4RM media 5 attachment 6/0 others
fsn=Generate thumbnail option 0 or empty=Turn off thumbnail generation 1 Turn on thumbnail generation 2 Thumbnail overwrites the original image, AspJpeg component support is required! !
fss=The text of the thumbnail watermark, 0 or empty means no watermark is added, and AspJpeg component support is required! !
Please read the instructions carefully and take a moment to look at the upload code. If you are familiar with it, you can freely change various upload operations. The small system can realize all upload processing functions in reality.