Installation
Quickstart
Connect to your storage zone
| Region Constant | Code | Location | City |
|---|---|---|---|
Region::FALKENSTEIN | de | Frankfurt, DE | Falkenstein (default) |
Region::LONDON | uk | London, UK | London |
Region::STOCKHOLM | se | Stockholm, SE | Stockholm |
Region::NEW_YORK | ny | New York, US | New York |
Region::LOS_ANGELES | la | Los Angeles, US | Los Angeles |
Region::SINGAPORE | sg | Singapore, SG | Singapore |
Region::SYDNEY | syd | Sydney, AU | Sydney |
Region::SAO_PAULO | br | Sao Paulo, BR | Sao Paulo |
Region::JOHANNESBURG | jh | Johannesburg, ZA | Johannesburg |
List files
FileInfo objects.
FileInfo properties:
getGuid()- Unique identifiergetName()- File namegetPath()- Directory pathgetSize()- File size in bytesgetChecksum()- File checksumgetDateCreated()- Creation dategetDateModified()- Last modification dateisDirectory()- Whether it’s a directory
Upload a file
- Single file
- Without checksum
- Async
- String content
Upload multiple files
- Batch (sequential)
- Async (concurrent)
Download a file
- To local file
- As string
Get file info
Check if file exists
Delete a file
Delete multiple files
Examples
Explore complete working examples in the GitHub repository:| Example | Description |
|---|---|
| file-upload | Upload a single file to storage |
| batch-upload | Upload multiple files sequentially |
| async-upload | Upload multiple files concurrently using promises |
| form-upload | Handle file uploads from HTML forms |
| list-files | List all files in a directory |
| download-file | Download a file from storage |
| file-info | Retrieve file metadata |
| delete-file | Delete a single file |
| delete-multiple-files | Delete multiple files in one operation |
| delete-old-files | Find and delete files older than a specified age |
| kitchen-sink | Complete UI with upload, list, view, and delete |