upload php

This commit is contained in:
2023-01-03 18:20:56 +01:00
parent 875f0b87c4
commit 371b55bd64
5 changed files with 160 additions and 72 deletions

View File

@ -6,6 +6,7 @@ const upload = (file: File, onUploadProgress: any): Promise<any> => {
let formData = new FormData();
formData.append("file", file);
formData.append("submit", "1");
let uploadRes = Axios.post("upload.php", formData, {
headers: {
@ -14,8 +15,8 @@ const upload = (file: File, onUploadProgress: any): Promise<any> => {
onUploadProgress,
});
let a: number = 1+3;
a++;
// let a: number = 1+3;
// a++;
return uploadRes;
};