GET /uploads
Description
Gets the requested binary file from the server
The route handles the GET request made to the /uploads/{id}/{name}
path.
HTTP method | Route | Query parameters |
---|---|---|
GET | /uploads | id/name |
Query parameters
The following parameters are sent in the request line:
Name | Type | Description |
---|---|---|
id | number | Required. The ID of the required file. |
name | string | Required. The name of the requested file. |
Payload
No payload is required.
Response
The route returns the requested binary file.
The HTTP status code shows whether the request succeeds (response.status == 200) or fails (response.status == 500).
Related articles: