# Files (*files*) ### Available Operations * [get_upload_url](#get_upload_url) - Upload any files to the storage ## get_upload_url Usually when you run something, you want to upload a file, image etc. ### Example Usage ```python import comfydeploy from comfydeploy.models import operations s = comfydeploy.ComfyDeploy( bearer_auth="", ) res = s.files.get_upload_url(type=operations.Type.APPLICATION_OCTET_STREAM, file_size='') if res.object is not None: # handle response pass ``` ### Parameters | Parameter | Type | Required | Description | | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | | `type` | [operations.Type](../../models/operations/type.md) | :heavy_check_mark: | N/A | | `file_size` | *str* | :heavy_check_mark: | N/A | ### Response **[operations.GetUploadURLResponse](../../models/operations/getuploadurlresponse.md)** ### Errors | Error Object | Status Code | Content Type | | ------------------------------- | ------------------------------- | ------------------------------- | | errors.GetUploadURLResponseBody | 500 | application/json | | errors.SDKError | 4xx-5xx | */* |