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 5373431 commit 9a27dfeCopy full SHA for 9a27dfe
android/src/main/java/video/api/reactnative/uploader/UploaderModule.kt
@@ -46,7 +46,7 @@ class UploaderModule(reactContext: ReactApplicationContext) :
46
fun setChunkSize(size: Int, promise: Promise) {
47
try {
48
videosApi.apiClient.uploadChunkSize = size.toLong()
49
- promise.resolve(videosApi.apiClient.uploadChunkSize)
+ promise.resolve(videosApi.apiClient.uploadChunkSize.toInt())
50
} catch (e: Exception) {
51
promise.reject("failed_to_set_chunk_size", "Failed to set chunk size", e)
52
}
0 commit comments