This commit is contained in:
Peter Hoppe
2022-12-30 14:49:00 +01:00
parent a5a05fca10
commit 875f0b87c4
2 changed files with 7 additions and 3 deletions

View File

@ -7,12 +7,16 @@ const upload = (file: File, onUploadProgress: any): Promise<any> => {
formData.append("file", file);
return Axios.post("/upload", formData, {
let uploadRes = Axios.post("upload.php", formData, {
headers: {
"Content-Type": "multipart/form-data",
},
onUploadProgress,
});
let a: number = 1+3;
a++;
return uploadRes;
};
const getFiles = () : Promise<any> => {