-
-
Notifications
You must be signed in to change notification settings - Fork 683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corrupt image when uploading #629
Comments
Thank you for raising this issue! We will try and get back to you as soon as possible. Please make sure you format it properly, followed our code of conduct and have given us as much context as possible. |
Thanks for the report. Does the same thing happen when other images are uploaded? I don't have any ideas why this can happen for now. Sorry ;/ |
Yes, this applies to all uploaded images. |
Thanks. Strange... These examples from this repo work? Oooh, that's serverless function above, right? Then try |
Oh, thanks, that solves the problem. Thank you very much for your time! |
Yea, sure. We should add it at least to the docs, haha. |
Support plan
Enterprise): community
Context
What are you trying to achieve or the steps to reproduce?
I'm trying to upload an image as form-data to a Nextjs api route. I use the package formidable to parse and save the file in a server folder. For the http request I use postman on the client.
What was the result you got?
The image (jpeg) is saved in the folder. However, it appears to be corrupt or damaged. Here is the corrupted image:
https://i.gyazo.com/1ce276c4968dc7e1cd24da74fe380467.png
What result did you expect?
Well, the original image. (https://i.gyazo.com/6ded28032d5dd5a0f02fd2a5052a57fc.png)
The text was updated successfully, but these errors were encountered: