filestack-java
filestack-java copied to clipboard
java.lang.RuntimeException: com.filestack.HttpException: {"error":"invalid params: size","timestamp":1640155298}
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.