Skip to content

Begin Chat File Upload

Revadike edited this page Nov 5, 2026 · 1 revision

POST /chat/beginfileupload/

Starts an upload of an image file to chat.

Rate limits

No known rate limit

Request

Authenticated: Yes

Method: POST

Host: steamcommunity.com

Path: /chat/beginfileupload/

Query Parameters:

Name Type Required Description
l string No Language

Form Data:

Name Type Required Description
sessionid string Yes The value of the sessionid cookie
file_size number Yes The size of the file in bytes
file_name string Yes The file name, e.g. 1699999999999_image.png
file_sha string Yes The SHA-1 hash of the file
file_image_width number Yes The width of the image in pixels
file_image_height number Yes The height of the image in pixels
file_type string Yes The MIME type of the image (image/jpeg, image/png or image/gif)
l string No Language

Response

200 OK

Name Type Description
success number Whether the request was successful
hmac string The signature to send to commitfileupload
timestamp number The Unix timestamp of the upload, to send to commitfileupload
result object The upload destination
result.ugcid string The ID of the uploaded file
result.url_host string The host the file must be uploaded to
result.url_path string The path the file must be uploaded to
result.use_https boolean Whether the file must be uploaded over HTTPS
result.request_headers[] array Headers to send with the upload
result.request_headers[].name string The header name
result.request_headers[].value string The header value

401 Unauthorized

Name Type Description
success number The error code (112 = LimitedUserAccount)
message string The error message

Example

POST https://steamcommunity.com/chat/beginfileupload/?l=english

TODO

Clone this wiki locally