filestack / filestack-java

Official Java SDK for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
https://filestack.com
Apache License 2.0
18 stars 18 forks source link

java.lang.RuntimeException: com.filestack.HttpException: {"error":"invalid params: size","timestamp":1640155298} #85

Open morerohit86 opened 2 years ago

morerohit86 commented 2 years ago

Getting error: java.lang.RuntimeException: com.filestack.HttpException: {"error":"invalid params: size","timestamp":1640155298} when File size is over 2 GB. (I am uploading File from Local storage). Supporting of Uploading 2GB+ files is not supported. Since in SdK We are using int as file size, When file size is over 2GB then size becomes negative since 2Gb+ hits the MAX.INT. Please Add the 'long' variable type instead of 'int' if this fixes the issue.

The code used is similar to https://github.com/filestack/filestack-android.