fix(front): try to correct crash on ios
Some checks failed
Deploy to Development / build-and-deploy (push) Has been cancelled
Deploy to Production / build-and-deploy (push) Successful in 1m39s

This commit is contained in:
EvanChal
2026-01-26 23:03:49 +01:00
parent 08810440e0
commit 658b7a9dda
10 changed files with 149 additions and 48 deletions

View File

@@ -465,9 +465,7 @@ async function handleImageChange(event) {
const formData = new FormData()
formData.append('file', file)
const response = await axios.post('/api/posts/upload-image', formData, {
headers: { 'Content-Type': 'multipart/form-data' }
})
const response = await axios.post('/api/posts/upload-image', formData)
newPost.value.image_url = response.data.image_url
} catch (error) {