fix(front): try to correct crash on ios
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user