Help Center> Object Storage Service> FAQs> APIs and SDKs> What Are the Differences Between PUT and POST Upload Methods?
Updated on 2023-10-26 GMT+08:00

What Are the Differences Between PUT and POST Upload Methods?

Parameters are passed through the request header if the PUT method is used to upload objects; if the POST method is used to upload objects, parameters are passed through the form field in the message body.

With the PUT method, you need to specify the object name in the URL, but object name is not required with the POST method, which uses the bucket domain name as the URL. Request lines of these two methods are given as follows:

PUT /ObjectName HTTP/1.1
POST / HTTP/1.1

Either PUT or POST method allows the object size of [0, 5 GB] for each upload. If you need to upload an object greater than 5 GB, use the multipart upload method.

For details about PUT and POST APIs, see Uploading Objects - PUT and Uploading Objects - POST.

APIs and SDKs FAQs

more