This commit is contained in:
Daniel Shleifman
2021-06-02 22:09:01 +03:00
parent 2ea00f041d
commit c87f8f6101
4 changed files with 12 additions and 36 deletions

View File

@@ -9,6 +9,7 @@ export default function UploadDialog() {
const handleCapture = ({ target: { files } }) => {
const [file] = files
const data = new FormData()
data.append('save', 'true')
data.append('file', file)
axios.post(torrentUploadHost(), data)
}