| Crates.io | cloud-file-storage |
| lib.rs | cloud-file-storage |
| version | 0.0.6 |
| created_at | 2025-03-21 00:36:52.928373+00 |
| updated_at | 2025-04-06 00:16:45.850786+00 |
| description | Cloud file storage server based on the Rust hyperlane framework, supporting multiple file types for upload. |
| homepage | |
| repository | https://github.com/ltpp-universe/cloud-file-storage.git |
| max_upload_size | |
| id | 1599940 |
| size | 71,446 |
Cloud file storage server based on the Rust hyperlane framework, supporting multiple file types for upload.
API URL: https://file.ltpp.vip
git clone git@github.com:ltpp-universe/cloud-file-storage.git
cargo run
| Method | Path | Query Parameter | Request Body | Description |
|---|---|---|---|---|
| POST | /add_file | key: file_name |
Binary file content | Uploads a file. file_name should include the file extension. |
| Field | Type | Description |
|---|---|---|
code |
int | Request status: 1 for success, 0 for failure. |
msg |
string | Message describing the result. |
data |
string | The URL of the uploaded file. |
{
"code": 1,
"msg": "ok",
"data": "https://file.ltpp.vip/aaaVaabOaabVaabTaabLaaaVaabWaabPaabJaab0aab1aabYaabLaabFaabIaabLaabKaaaVaabMaabPaabSaabLaaaVaaaYaaaWaaaYaaa1aaaVaaaWaaaYaaaVaaaWaaa1aaaVaabJaaa0aaaWaaa2aabIaaaXaaa0aabLaaa1aaa5aabKaabIaaa0aabLaabJaaa2aabJaaa1aabHaaa1aabHaaa0aaa4aaa5aabKaaaWaaaWaaaXaabKaabMaabJaabLaabHaabHaaa3aaa4aaa2aaa0aabHaabMaaa5aaaWaaaZaabHaabMaabHaabLaaa0aaa1aabLaabHaaa3aabHaabIaaa0aaa5aaaWaaaXaaa5aabIaaaWaaa3aaa3aabH.png"
}
{
"code": 0,
"msg": "missing file_name",
"data": ""
}
Use the URL returned by the upload API.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please submit issues or pull requests.
For any questions, please contact ltpp-universe root@ltpp.vip.