filestack-java icon indicating copy to clipboard operation
filestack-java copied to clipboard

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

Open morerohit86 opened this issue 3 years ago • 0 comments

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.

morerohit86 avatar Dec 22 '21 09:12 morerohit86