diff --git a/components/Photo.vue b/components/Photo.vue index 01817a8..d01947b 100644 --- a/components/Photo.vue +++ b/components/Photo.vue @@ -75,12 +75,12 @@ const {data: photos } = await useFetch('http://ubodroid-2:8081/api/v1/pho'); const onAdvancedUpload = async (event) => { const files = event.files; - let fd = new FormData(); - fd.append('files', files); - console.log('fd = ', fd); + /*let fd = new FormData(); + fd.append('files', files);*/ + console.log('files = ', files); const imgUpload = await $fetch("http://ubodroid-2:8081/api/v1/upload", { method: "POST", - body: fd, + body: files, }); if (imgUpload) { console.log(imgUpload);