Upload Files

Learn how to upload files to ScallerFox Object Storage and manage them efficiently.

Note: File upload functionality is available through the ScallerFox API. Use the API endpoints to programmatically upload files from your application or scripts.

Upload Methods

API Upload

Upload files programmatically using REST API endpoints. This is the recommended method for production applications.

Example cURL request:

curl -X POST https://api.scallerfox.com/api/storage/upload \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -F "file=@/path/to/file.jpg" \\
  -F "folder=images"

See Storage API documentation for detailed endpoint documentation.

Upload Best Practices

File Organization

  • Use folders/paths to organize files (e.g., images/2024/)
  • Use descriptive filenames with timestamps or UUIDs to avoid conflicts
  • Group related files in the same folder for easier management

Performance

  • Compress images before uploading to reduce storage and bandwidth costs
  • Upload large files asynchronously to avoid blocking user requests
  • Use multipart uploads for files larger than 100MB