You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example:
after compressing with video_compress (https://pub.dev/packages/video_compress) plugin, path could be:
'/storage/emulated/0/Android/data/com.example/files/video_compress/VID_2021-10-25 02-21-21.mp4'
which would be detected as mime type 'application/octet-stream' instead of 'video/mp4'
Debated on whether this is an issue with video_compress creating paths with whitespace, or flutter_uploader not accepting paths with whitespace. Decided this is a flutter_uploader issue. iOS works fine with whitespace
The text was updated successfully, but these errors were encountered:
Any updates on this? After the investigation, it seems that the method that causes the issue is private String GetMimeType(String url) in UploadWorker.java, specifically - String extension = MimeTypeMap.getFileExtensionFromUrl(url);. I assume this part returns null or empty string.
For example:
after compressing with video_compress (https://pub.dev/packages/video_compress) plugin, path could be:
'/storage/emulated/0/Android/data/com.example/files/video_compress/VID_2021-10-25 02-21-21.mp4'
which would be detected as mime type 'application/octet-stream' instead of 'video/mp4'
Debated on whether this is an issue with video_compress creating paths with whitespace, or flutter_uploader not accepting paths with whitespace. Decided this is a flutter_uploader issue. iOS works fine with whitespace
The text was updated successfully, but these errors were encountered: