Skip to main content
The Upload method uploads files to Reducto’s servers and returns a file reference that you can use with other endpoints.

Basic Usage


Method Signature

Parameters

Returns

*shared.Upload with the following fields:
  • FileID (string): The file reference to use with other endpoints (format: reducto://...)

Upload Options

From File

The most common way to upload:

With Extension Hint

From Buffer/String


File Size Limits

  • Direct upload: Up to 100MB
  • Presigned URLs: Up to 5GB
For files larger than 100MB, use presigned URLs instead of the upload endpoint.

Large File Upload Guide

Complete guide to uploading large files using presigned URLs.

Error Handling

Common errors:
  • File not found: The file path doesn’t exist
  • File too large: File exceeds 100MB limit (use presigned URLs)
  • Invalid file type: File format not supported
  • Network error: Connection issues during upload

Next Steps