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

This commit is contained in:
2026-05-20 15:44:44 -04:00
parent f510dea09d
commit 0f7efc8961

View File

@@ -366,7 +366,7 @@ function onDragEnd() {
async function uploadImage(file: File): Promise<string> {
const formData = new FormData()
formData.append('file', file)
formData.append('type', '4')
formData.append('type', '2')
formData.append('permanent', 'false')
const resp = await fetch('/api/image/upload', { method: 'POST', body: formData })
if (!resp.ok) throw new Error('Image upload failed')