Small changes

This commit is contained in:
LeoMoulin committed 2024-04-20 12:42:41 +02:00
1 parent 92cdeaebba
commit cdc3772384
6 files changed
+22 -8

No files matched your search

+2 -2
View File
@@ -13,11 +13,11 @@ export async function uploadProfilePicture(file){
/**
* More generic version of the upload method
* More generic version of the uploadProfilePicture method
*/
export async function uploadFile(file, type){
const formData = new FormData();
formData.append("file", file[0]);
return restPostFile("/upload/"+type, formData)
}
}