We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e6ddde commit a3d0f72Copy full SHA for a3d0f72
android/src/main/java/com/reactnativedocumentpicker/DocumentPickerModule.java
@@ -275,10 +275,10 @@ private WritableMap getMetadata(Uri uri) {
275
map.putString(FIELD_TYPE, cursor.getString(mimeIndex));
276
}
277
int sizeIndex = cursor.getColumnIndex(OpenableColumns.SIZE);
278
- if (!cursor.isNull(sizeIndex)) {
279
- map.putInt(FIELD_SIZE, cursor.getInt(sizeIndex));
280
- } else {
+ if (cursor.isNull(sizeIndex)) {
281
map.putNull(FIELD_SIZE);
+ } else {
+ map.putDouble(FIELD_SIZE, cursor.getLong(sizeIndex));
282
283
284
0 commit comments