This commit is contained in:
split / May 2023-03-24 17:47:47 -07:00
parent e75b8fb3aa
commit 23744f1fc2

View file

@ -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))