This topic describes how to use form upload on the web to directly upload data to Object Storage Service (OSS).
In most cases, when users use a browser or an application to upload an object, the object is uploaded to the application server. Then, the application server uploads the object to OSS. During this process, the application server is necessary to transfer the object. In this case, the transmission efficiency is lower compared to direct data upload.
Direct upload allows you to call the PostObject operation to upload data. For more information, see PostObject. The following cases describe how to upload data to OSS by using form upload:
On the client, add signatures by using JavaScript and use form upload to upload data to OSS. For more information, see Add signatures on the client and upload data to OSS.
Add signatures on the application server and use form upload to upload data to OSS. For more information, see Obtain signature information from the application server and upload data to OSS.
Add signatures on the application server, configure upload callbacks on the application server, and use form upload to upload data to OSS. After OSS receives the callback response, OSS returns the response to the client. For more information, see Overview.