feat: chunk uploads
This commit is contained in:
19
backend/fixtures/test.http
Normal file
19
backend/fixtures/test.http
Normal 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
BIN
backend/fixtures/upload.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 184 KiB |
Reference in New Issue
Block a user