mirror of
https://github.com/KevinMidboe/leifsopplevelser.git
synced 2025-10-29 17:50:21 +00:00
Upload post requests are sent to leifs-backend that now will proxy our request onward to leifs-image-processor.
This commit is contained in:
@@ -43,7 +43,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
console.log('formdata', formData)
|
console.log('formdata', formData)
|
||||||
axios.post('http://localhost:5001/upload', formData, { onUploadProgress: progressEvent => console.log(100 * (progressEvent.loaded / progressEvent.totalSize))} )
|
axios.post('http://localhost:5000/api/upload/' + 1, formData, { onUploadProgress: progressEvent => console.log(100 * (progressEvent.loaded / progressEvent.totalSize))} )
|
||||||
.then((resp) => console.log('response from posting to server:', resp))
|
.then((resp) => console.log('response from posting to server:', resp))
|
||||||
.catch((error) => console.error('error from post request:', error))
|
.catch((error) => console.error('error from post request:', error))
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user