ASP version of Alibaba Cloud OSS cloud storage upload . Since Alibaba Cloud officially does not provide a demo of the ASP version, I made the upload code for the ASP version based on the official website documents. Four upload methods are provided, and users can choose to use them according to their own needs.
Instructions for uploading files to ASP version of Alibaba Cloud OSS cloud storage └──function
└──function/sha1.asp (asp version of hmac_sha1 encryption, supports Chinese encryption)
└──function/config.asp (used to configure your OSS information, bucket name/region/secretID/secretKEY)
└──function/function.asp (some functions, such as obtaining timestamps and converting to GMT time)
└──post1 (upload files from the browser to OSS and save the files to the server at the same time, using the post method)
└──post2 (obtain files from the server and upload them to OSS, using the post method)
└──put1 (upload files from the browser to OSS and save the files to the server at the same time, using the put method)
└──put2 (obtain files from the server and upload them to OSS, using the put method)
└──getlist (get OSS file list, also includes the functions of file signature verification and deletion of OSS files)
The document only gives three examples of uploading files, getting file lists, and deleting files, but the core code parts (how to connect requests, how to sign) are all shown, and users can draw inferences to implement other OSS functions.
1. Open function/config.asp and fill in the configuration information, then you can use it.
2. Make sure the server or space has the parent path enabled
3. Make sure the folder has write permissions
4. If the xmlhttp component of the server or space does not support Msxml2.ServerXMLHTTP.3.0, it can be replaced with other versions such as Microsoft.XMLHTTP