This system allows users to upload large files in a chunked manner through parallel processing.
- Go (Golang)
go run main.go
index.html
- URL:
/upload
- Method:
POST
- Form Data:
file
: The file chunk.chunkNumber
: The number of the current chunk.totalChunks
: The total number of chunks.fileID
: An identifier for the file being uploaded.
Example Request:
curl -X POST \
http://localhost:8080/upload \
-H 'content-type: multipart/form-data' \
-F file=@path/to/chunk \
-F chunkNumber=1 \
-F totalChunks=5 \
-F fileID='example-file'