Fixed issue with video upload timeout and upper case file type on ios

This commit is contained in:
Alex Tran 2022-02-05 15:58:36 -06:00
parent 69ed287974
commit ca0feb8c8d
4 changed files with 24 additions and 9 deletions

View file

@ -1,10 +1,12 @@
import 'package:flutter/material.dart';
import 'package:path/path.dart' as p;
class FileHelper {
static getMimeType(String filePath) {
debugPrint(filePath);
var fileExtension = p.extension(filePath).split(".")[1];
switch (fileExtension) {
switch (fileExtension.toLowerCase()) {
case 'gif':
return {"type": "image", "subType": "gif"};