The app allows you to customize how your uploads are handled on the server:
#### Maximum Downloads
- **Purpose**: Limit how many times a file can be downloaded
- **Default**: 1 download (file is removed after first download)
- **Options**:
- Set to any positive number to limit downloads
- Set to 0 for unlimited downloads
- **How to use**: Enter your desired number in the "Maximum Downloads" field when uploading a file
#### Expiry Time
- **Purpose**: Set how long the file remains available on the server
- **Default**: 24 hours (1 day)
- **Maximum**: 24 hours (server-enforced limit)
- **How to use**: Enter your desired number of hours in the "Expiry Time" field when uploading
#### Upload Parameter Dialog
When you initiate an upload (either a selected file or dumpstate), the app will present a dialog where you can set these parameters before the actual upload begins. If you don't modify the fields, the default values will be used.
### Server-Side File Deletion
The app integrates with the server's delete endpoint to remove files from the server when you delete them from your local history.
#### Single Item Deletion
When you delete a single item from your upload history:
1. The app attempts to delete the file from the server using its upload code
2. Regardless of server response, the item is removed from your local history
3. You will receive feedback about whether the server deletion was successful
#### Bulk Deletion (Clear History)
When you clear all history:
1. The app attempts to delete each file from the server
2. All items are removed from your local history
3. You will receive feedback about whether any of the server deletions were successful
#### Benefits
- **Privacy**: Ensures your uploaded files don't remain on the server indefinitely
- **Resource Management**: Helps keep the server storage clean
- **Control**: Gives you full control over the lifecycle of your uploaded files
#### API Integration
The app uses the server's delete endpoint:
```
DELETE /delete/<code>
```
This endpoint requires the same client authentication key used for uploads. The server returns:
- 200 OK: File successfully deleted
- 404 Not Found: File doesn't exist (already deleted or expired)