ionic-team / ionic-team/ion-android-filesystem

Uploading files larger than 2.14GB using chunked upload not working

Open
#9 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Kotlin
Stars
1
Forks
4
PR merge metrics
No merged PRs in 30d

Description

The implementation of `IONFILEReadInChunksOptions.kt` uses a Int to represent the offset. This means, if the file is larger than Int.MAX_VALUE we have an overflow situation resulting in a corrupt file after upload.

A correct implementation using random file access shoudl use a long value. As it's also done in `RandomAccessFile.seek(long pos)` or `FileChannel.position(long position)`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.