fix: Update image upload type from '4' to '2' for correct processing
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m40s
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m40s
This commit is contained in:
@@ -366,7 +366,7 @@ function onDragEnd() {
|
|||||||
async function uploadImage(file: File): Promise<string> {
|
async function uploadImage(file: File): Promise<string> {
|
||||||
const formData = new FormData()
|
const formData = new FormData()
|
||||||
formData.append('file', file)
|
formData.append('file', file)
|
||||||
formData.append('type', '4')
|
formData.append('type', '2')
|
||||||
formData.append('permanent', 'false')
|
formData.append('permanent', 'false')
|
||||||
const resp = await fetch('/api/image/upload', { method: 'POST', body: formData })
|
const resp = await fetch('/api/image/upload', { method: 'POST', body: formData })
|
||||||
if (!resp.ok) throw new Error('Image upload failed')
|
if (!resp.ok) throw new Error('Image upload failed')
|
||||||
|
|||||||
Reference in New Issue
Block a user