@ammarahmed/react-native-upload 6.27.0 → 6.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -64,7 +64,7 @@ class UploaderModule(val reactContext: ReactApplicationContext) : ReactContextBa
64
64
  params.putString("size", fileInfo.length().toString()) //use string form of long because there is no putLong and converting to int results in a max size of 17.2 gb, which could happen. Javascript will need to convert it to a number
65
65
  val extension = MimeTypeMap.getFileExtensionFromUrl(path)
66
66
  params.putString("extension", extension)
67
- val mimeType = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension.toLowerCase())
67
+ val mimeType = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension.lowercase())
68
68
  params.putString("mimeType", mimeType)
69
69
  }
70
70
  promise.resolve(params)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ammarahmed/react-native-upload",
3
- "version": "6.27.0",
3
+ "version": "6.28.0",
4
4
  "description": "Cross platform http post file uploader with Android and iOS background support.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",