chibisafe / uploader

The chibisafe uploader
MIT License
1 stars 2 forks source link

When the upload is not chunked and it doesn't come from our client, save metadata #2

Closed Pitu closed 1 year ago

Pitu commented 1 year ago

Currently the @chibisafe/uploader-client sends extra metada on upload which is useful for the database. We need to do the same with single file uploads that are not coming from the client.

"metadata":{
    "name":"parsec-windows.exe",
    "type":"application/x-msdownload",
    "size":"2881040"
}
Pitu commented 1 year ago

Done in https://github.com/chibisafe/uploader/commit/a46dce9d07119beadf32b285a4eaa5fa0ae9aad0#diff-310bd493682dc3c5e78383aef5e8d305a4c8f8ab30043a450cb37f44afcedd9bR86 and https://github.com/chibisafe/uploader/commit/19d67509671d068aee6f1fdd51cc30fa2e08dd22#diff-310bd493682dc3c5e78383aef5e8d305a4c8f8ab30043a450cb37f44afcedd9bR143