You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When selecting a file from a tmp folder and uploading it, the uploaded file's size should remain the same.
Actual behaviour
On selecting an image using openPicker or openCropper method and using the path and other data to create a formData object for the file upload, the compressed file size (say 250kB) is getting almost doubled or larger after upload (like 500 kB). But, if I select the same file, use it in POSTman, and upload it via the same API, the uploaded file size comes out to be 250kB only.
Steps to reproduce
Attachments
File from the react-native-image-crop-picker tmp folder:
Image object used for the formData payload:
Output from file upload(on the backend using s3 uploads directly without any image optimization):
Version
Tell us which versions you are using:
Platform
Tell us to which platform this issue is related
Expected behaviour
When selecting a file from a tmp folder and uploading it, the uploaded file's size should remain the same.
Actual behaviour
On selecting an image using
openPicker
oropenCropper
method and using the path and other data to create aformData
object for the file upload, the compressed file size (say 250kB) is getting almost doubled or larger after upload (like 500 kB). But, if I select the same file, use it in POSTman, and upload it via the same API, the uploaded file size comes out to be 250kB only.Steps to reproduce
Attachments
File from the
react-native-image-crop-picker
tmp folder:Image object used for the
formData
payload:Output from file upload(on the backend using s3 uploads directly without any image optimization):
Love react-native-image-crop-picker? Please consider supporting our collective:
👉 https://opencollective.com/react-native-image-crop-picker/donate
The text was updated successfully, but these errors were encountered: