feat: chunk uploads

This commit is contained in:
Rogee
2025-01-15 00:26:10 +08:00
parent 591771ce77
commit 9bfdf0e0ea
16 changed files with 451 additions and 40 deletions

View File

@@ -0,0 +1,19 @@
### Upload File
POST http://localhost:9600/api/v1/medias/upload
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="chunk_number"
1
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="total_chunks"
1
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="1.png"
Content-Type: image/png
< ./upload.png
------WebKitFormBoundary7MA4YWxkTrZu0gW--

BIN
backend/fixtures/upload.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB