mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-24 22:56:26 -08:00
ffff
This commit is contained in:
parent
e75b8fb3aa
commit
23744f1fc2
|
@ -99,7 +99,7 @@ app.post("/clone", bodyParser.json({type: ["text/plain","application/json"]}) ,(
|
||||||
files.uploadFile({
|
files.uploadFile({
|
||||||
owner: auth.validate(req.cookies.auth),
|
owner: auth.validate(req.cookies.auth),
|
||||||
|
|
||||||
name:req.body.url.split("/")[req.body.split("/").length-1] || "generic",
|
name:req.body.url.split("/")[req.body.url.split("/").length-1] || "generic",
|
||||||
mime:data.headers["content-type"],
|
mime:data.headers["content-type"],
|
||||||
uploadId:req.body.uploadId
|
uploadId:req.body.uploadId
|
||||||
},Buffer.from(data.data))
|
},Buffer.from(data.data))
|
||||||
|
|
Loading…
Reference in a new issue