I have these recorded videos which exist in the app directory that I want the app to upload them to firebase storage and get the progress percentage, I know how to upload from gallery but not from app directory.
Asked
Active
Viewed 174 times
1 Answers
0
You can use path_provider to get recorded videos from your application directory.
Directory appDocDir = await getApplicationDocumentsDirectory();

Haroon Ashraf Awan
- 1,201
- 1
- 6
- 15
-
then ? the same way as the gallery ? – FlutterDeveloper11 Oct 03 '20 at 10:07
-
Yes the only goal here to upload is to get paths of files and that we can with path_provider. – Haroon Ashraf Awan Oct 03 '20 at 10:07
-
ok can u post the way to upload a video to firebase storage ? – FlutterDeveloper11 Oct 03 '20 at 10:08
-
Please share your code where you are uploading videos already with gallery. – Haroon Ashraf Awan Oct 03 '20 at 10:09
-
cause I saw ways using image picker that must include some sources but not the app directory. – FlutterDeveloper11 Oct 03 '20 at 10:09
-
Here, I got it from this link (https://stackoverflow.com/questions/51822789/flutter-firebase-storage-upload-video) – FlutterDeveloper11 Oct 03 '20 at 10:10
-
or if u have a way to save the videos in gallery ? – FlutterDeveloper11 Oct 03 '20 at 10:13