Flutter - Saving Files to Application Folder and Gallery | Flutter Tutorial

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 113

  • @RetroPortalStudio
    @RetroPortalStudio  4 года назад +5

    If you find this video useful, consider Following me on:
    Twitter: twitter.com/theretroportal
    Instagram: instagram.com/retroportalstudio
    LinkedIn: www.linkedin.com/in/parasjainrps
    Git: github.com/retroportalstudio
    Happy Coding! ✌️😁

    • @abelharlem1327
      @abelharlem1327 3 года назад

      I dont mean to be so off topic but does any of you know of a way to get back into an instagram account..?
      I stupidly lost the account password. I would appreciate any tips you can give me.

    • @nitishgarg4716
      @nitishgarg4716 3 года назад

      amazing video, Thank you. Does it work for IOS also?

  • @JuanPerez-vv5lk
    @JuanPerez-vv5lk 3 года назад +6

    I like the way you explain everything. Just try to have both the IDE and Emulator side by side, it's easier to follow the tutorial with both screen at the same time.

  • @southpaw2576
    @southpaw2576 3 года назад +3

    Thanks a lot for this it helped me out a lot, but how about a download function where it doesn't show the file in the app folder? similar to youtube and netflix. Thanks!

  • @brcglog3808
    @brcglog3808 2 года назад

    it's so joyful watching your tutorial, thank you for this man, I appreciate it

  • @chrisbanas9118
    @chrisbanas9118 3 года назад +1

    This fixed days of headaches thank you so much

  • @sharbelokzan9673
    @sharbelokzan9673 3 года назад +3

    your tutorials are just perfect ❤️

  • @cryptoguests3095
    @cryptoguests3095 2 года назад +2

    thanks for this tutorial, it's very useful.
    I'm working on sound recorder, it seems the file are saved on temporary directory, but I want to create a folder for the App so that all the record can be saved there permanently. Please how can I accomplish this task?

  • @akailok
    @akailok 4 года назад +1

    Hey bro you explanation is best but can you develop small project in MVC you follow
    1.MVC
    2.Clean code
    3.Test cases
    4.multiple screen transition
    5.app deployment.
    Please can cover this topics ,so that we can build app.👍

  • @FemiKolawole
    @FemiKolawole 4 года назад +1

    YOURE A GENIUS!!! THANK YOU FOR SHARING.

  • @hamisirizwan9480
    @hamisirizwan9480 2 года назад

    Nice tutorial. Really helped. How about when i want to view the downloaded file only within the app? similar to youtube and netflix. Thanks!

  • @muhammadusamatariq4819
    @muhammadusamatariq4819 3 года назад +3

    We always use i or j variable in for loop. Its the law in programming. Do follow it. just kidding very nice tutorial thanks bro

  • @mohdazam3776
    @mohdazam3776 3 года назад +1

    Hello brother, Thanks for the amazing tutorial. Can I open the file as soon as it downloads? How can I do that?

  • @maen.kh_work
    @maen.kh_work 8 месяцев назад +1

    great video thank you, for future reference instead of using for loop, you can easily make split like this
    String s = directory.path ;
    s.split("Android/").first // /storage/emulated/0/

  • @usama_khalid
    @usama_khalid 2 года назад +1

    Thank you. This is extremely helpful...

  • @dgrippo
    @dgrippo Год назад

    Excellent video! Very well explained. Simple and clear. Well done. Question: I'd like to download csv files into the download directory. Is it possible to adapt this code? How can I do to move the file from the temporary directory to the download directory?

  • @MrGansoSalvaje
    @MrGansoSalvaje Год назад

    in the instruction await directory.create(recursive: true); return the next errror : FileSystemException: Creation failed, path = '/storage/emulated/0/RpsApp' (OS Error: Permission denied, errno = 13) and before the error the app ask me is I allowed to give permision

  • @zahrasgari
    @zahrasgari 6 месяцев назад

    I place ur url in the same exact code but when the phone download it it wont open and says (cant open this link) i dont know how to fix that?

  • @KuldeepSingh-dn9sc
    @KuldeepSingh-dn9sc 4 года назад +1

    Can you please help me
    When we receive json file from api
    Then save it into storage to read again when our app will start again
    How is this happen ❓❓❓
    Which technique is used to store json file data

  • @vaibhavpallod1023
    @vaibhavpallod1023 3 года назад +1

    Thanks man you saved my day!

  • @shahmaarbaba
    @shahmaarbaba 9 месяцев назад

    can u please make a tutorial for a simple camera app which click a photo and save into custom location in phone

  • @VanshikaGupta-h4o
    @VanshikaGupta-h4o 10 месяцев назад

    But is it possible to save the file in external storage? Without going for hidden private data of android, the file should be visible externally.

  • @mmpm
    @mmpm 3 года назад +1

    Thanks for the tutorial i appreciate your work man

  • @nickcfc1
    @nickcfc1 2 года назад

    in 2022 your explanation still works which is something exceptional due to so many changes in android and flutter, congratulations, my problem is with the emulator that doesn't work, doesn't allow it, on mobile it works perfectly, do you have any tips?

  • @vitordalefi1421
    @vitordalefi1421 Год назад

    Hello, thanks for the video. It's very simple to understand with its didactics.
    I'm getting this problem: "I/flutter (20628): FileSystemException: Creation failed, path = '/storage/emulated/0/OnlaineApp' (OS Error: Permission denied, errno = 13)" , how can I fix it?

  • @АлексейТарасов-ф4б
    @АлексейТарасов-ф4б 3 года назад

    Very helpful! Maybe You know about API 30+, with MediaStore etc, how to implement it in Flutter?

  • @AwaisQazichannel
    @AwaisQazichannel 2 года назад

    Can I open desitned folder in my app flutter

  • @karthikr9288
    @karthikr9288 3 года назад +1

    Top content ! Thanks a lot 👍🏼

  • @BooSgu
    @BooSgu 3 года назад

    Thank you, this is verfy helpful!

  • @bharatkumaracademy720
    @bharatkumaracademy720 2 года назад +1

    awesome tutorial

  • @muhammadrasul1581
    @muhammadrasul1581 3 года назад

    so you downloaded the video, but let's say you downloaded a pdf to the folder in the phone so how would you be able to read the downloaded pdf in the application?

  • @deborahmizfel8036
    @deborahmizfel8036 2 года назад

    Hello one question. Does the allow permission only appear once? Because I need it to appear every time I download the file.

  • @Webdesignanddevelopment
    @Webdesignanddevelopment 3 года назад +1

    please update this tutorial. Thanks in advance

  • @dheeraj5023
    @dheeraj5023 3 года назад +1

    really helpful this video, thankyou

  • @Alamsyah-qu5cf
    @Alamsyah-qu5cf 3 года назад +2

    Can someone help me? I've got error: FileSystemException: Creation failed, path = '/storage/emulated/0/Report' (OS Error: Operation not permitted, errno = 1) even after I allowed the permission? I'm developing using an android 11 device, is this a problem for android 11?

    • @DelgadoRecords
      @DelgadoRecords 3 года назад

      did you fix it? how?

    • @niroopnife9044
      @niroopnife9044 3 года назад +1

      @@DelgadoRecords Try by setting the compileSdkVersion and targetSdkVersion to 29

    • @UmeshKumar-gj1tf
      @UmeshKumar-gj1tf 2 года назад

      try using your phone instead of emulated phone.
      Also add one more permission in android manifest -> and after installing that app in your physical phone allow it permission from app info to full media access and it gets fixed !!!!!!!!

  • @ashutoshtiwari6104
    @ashutoshtiwari6104 2 года назад

    Creation failed, path = '/storage/emulated/0/RPSApp' (OS Error: Operation not permitted, errno = 1)

  • @TupakulaChaithanya
    @TupakulaChaithanya 10 месяцев назад +1

    thanks man, its working

  • @mianarslan1239
    @mianarslan1239 3 года назад

    please answer a big fan here!
    1. How can I download video from firebase storage like youtube App which is only accessible in App?
    2. How can I show that video in download session of our app without internet?

  • @ryankurniantara1090
    @ryankurniantara1090 Год назад

    if we want to download a file in ios, its possible it save in image gallery saver ?

  • @moeinkpr9100
    @moeinkpr9100 3 года назад +2

    thank you for your tutorial. excuse me source code which see in above video don't work for android 11. do you have any solve for this problem??

    • @RetroPortalStudio
      @RetroPortalStudio  3 года назад +1

      I am trying for figure out a solution for that! Once i find one, i'll sure make a video on that!

    • @vrajendramandloi5917
      @vrajendramandloi5917 2 года назад

      @@RetroPortalStudio have u made a video on that ??

    • @vrajendramandloi5917
      @vrajendramandloi5917 2 года назад

      did you got any solution ??

    • @moeinkpr9100
      @moeinkpr9100 2 года назад +1

      @@vrajendramandloi5917
      I forgot how to solve that but i think bottom source code is useful and remember I solve that with add another permission
      if (await _requestPermission(Permission.storage) &&
      await _requestPermission(Permission.manageExternalStorage) &&
      await _requestPermission(Permission.photos) &&
      await _requestPermission(Permission.mediaLibrary)

    • @codinghtml3331
      @codinghtml3331 Год назад

      @@moeinkpr9100 Thank you, this actually helped me :)

  • @abdallahmbiola244
    @abdallahmbiola244 Год назад

    God bless you, thanks a lot

  • @LakshayBhalla
    @LakshayBhalla 4 года назад +1

    Great video 👍🏻

  • @obviousabsurdity3181
    @obviousabsurdity3181 2 года назад

    Great video, cant find many on saving to local storage properly, My only issues is that I keep getting the error creation failed, operation not permitted even though its requesting and returning granted. Any thought?

  • @sadhlife
    @sadhlife 4 года назад

    what's with the request legacy storage thing? what has changed with sdk 29+?

  • @GafarRisky
    @GafarRisky 3 года назад

    thank you so much ,, best of the best channel

  • @jubairhossain2117
    @jubairhossain2117 3 года назад +1

    What if we want to save the file in Downloads Directory for IOS?

    • @nikalags
      @nikalags 2 года назад

      I try to find out too now

  • @egbuchulamalexanderginika3423
    @egbuchulamalexanderginika3423 3 года назад

    Good day, please how do I upload a video and get a URL like the one used on the video ...

  • @ailtondevesse4738
    @ailtondevesse4738 2 года назад

    is there a way to replace the file if there's already a file with the same name ?

  • @konstantink2396
    @konstantink2396 2 года назад

    Дядя, лучший! Спасибо

  • @noureddinetahar413
    @noureddinetahar413 3 года назад

    hi thank you for explanation and don't you mind could you upload another video to explain how to upload file from file manager (external storage) i had a trouble with file picker (the latest update) , i have now a project and i couldn't find the best source for helping me , please help me :(

  • @hashankannangara8723
    @hashankannangara8723 4 года назад +1

    Important video❤️

  • @Snggle
    @Snggle 4 года назад

    how can i get this to save a file created on the app, to those storages places?

  • @ttae1141
    @ttae1141 Год назад +1

    thank you

  • @MrZawe
    @MrZawe 4 года назад +2

    Do read write files please

  • @vrajendramandloi5917
    @vrajendramandloi5917 2 года назад

    This Approach is not working for Android 11. do you have any solution for that. i tried to replicate exactly the same way but it is not getting created.
    ** when i try to run the app via connecting to laptop this works .. but it does not work when i build a APK and deploy to a mobile.. Path and all is absolutely correct i have checked it via dialogs.

  • @hectorprx
    @hectorprx 4 года назад +1

    Thanks , Very Ncie

  • @imyogisingh
    @imyogisingh 3 года назад +1

    Sir , there is a issue ! Whenever we download any image or video using dio and then saving it any custom folder we made in the external directory . the file is saved but the issue is that it is not showing in the gallery ! What should we do

    • @desmondmiles8544
      @desmondmiles8544 3 года назад

      did you solved that?

    • @imyogisingh
      @imyogisingh 3 года назад

      @@desmondmiles8544 yes ! Resolved it

    • @nitishgarg4716
      @nitishgarg4716 3 года назад

      @@imyogisingh Please share. How?

    • @imyogisingh
      @imyogisingh 3 года назад

      @@nitishgarg4716 just use Register callback in the init state !

    • @nitishgarg4716
      @nitishgarg4716 3 года назад

      @@imyogisingh I didn't understand can you please explain in details. Actually I am new to flutter, Can I get your contact number or something. Please help.

  • @TechWithDnes
    @TechWithDnes 4 года назад +2

    Nice

  • @longdyleng4271
    @longdyleng4271 3 года назад +1

    Could you do for saving into real devices like android phone?

    • @nitishgarg4716
      @nitishgarg4716 3 года назад +1

      hey there! I hope you are doing well, have you find the solution. If yes Please share.

  • @theautomationchannel6920
    @theautomationchannel6920 3 года назад

    *_That's very goood code_*

  • @Blazar0
    @Blazar0 3 года назад +1

    hi, does it work for android 11 ? thank you

  • @cybrrxgegames8370
    @cybrrxgegames8370 3 года назад

    Hey. Is it possible to "grab the file" without a file or image picker so the user is not forced to open the files folder on his phone and to post this on a server?

    • @amanjain6084
      @amanjain6084 2 года назад

      Then how you want it to happen can i know

    • @cybrrxgegames8370
      @cybrrxgegames8370 2 года назад

      @@amanjain6084 Actually I found a way. I download i file from firebase in a new folder which gets created before downöoading and saves it into this folder. Now i can automatically delcare a new file from the path which the file got saved to. Now I can use this file without even picking a file by myself in app, so the app does it for the user.

  • @aniketkumarsinha2537
    @aniketkumarsinha2537 3 года назад +6

    FileSystemException: Creation failed, path = '/storage/emulated/0/Papers' (OS Error: Operation not permitted, errno = 1)
    Getting this error....plzz help anyone

    • @armynoncomtools3643
      @armynoncomtools3643 3 года назад

      Did you ever find an answer to this error?

    • @aniketkumarsinha2537
      @aniketkumarsinha2537 3 года назад

      @@armynoncomtools3643 no

    • @chrisbanas9118
      @chrisbanas9118 3 года назад

      @@aniketkumarsinha2537 I found a fix, you most likely have your SDK versions in the build.gradle set to 30. I set mine to 29 and had to use the same plugin versions that the youtuber’s github repo had and ran my flutter app with null safety off

    • @chrisbanas9118
      @chrisbanas9118 3 года назад

      @@armynoncomtools3643 Check my reply

    • @armynoncomtools3643
      @armynoncomtools3643 3 года назад

      @@aniketkumarsinha2537 I found the answer. You need to request permission to Permission.manageExternalStorage instead of Permission.storage

  • @Ok-Chance
    @Ok-Chance 2 года назад

    not working anymore , please update it ! thanks for effort

  • @samippaudel266
    @samippaudel266 2 года назад

    How to save file ?Please Explain

  • @zainansari1057
    @zainansari1057 3 года назад

    Thanks alot bro

  • @hardiklakhalani6268
    @hardiklakhalani6268 2 года назад +1

    Flutter sucks at Managing storage files! But we still gotta roll with it 🤷🏻‍♂️

  • @zainansari1057
    @zainansari1057 3 года назад

    Hy
    Can you help me? I am unable to download any file in android 11. I can download files in the Android/data/package_name folder but when I am trying to access the download folder or movies folder I can't write data there.

    • @nitishgarg4716
      @nitishgarg4716 3 года назад

      hey there! I hope you are doing well, I am facing kind of same problem Videos are not saving in the gallery , Please help if you know why.

    • @zainansari1057
      @zainansari1057 3 года назад

      @@nitishgarg4716 you can't directly save files to storage

    • @zainansari1057
      @zainansari1057 3 года назад +1

      @@nitishgarg4716 I found a solution btw

    • @zainansari1057
      @zainansari1057 3 года назад +1

      @@nitishgarg4716 I am working on it

    • @nitishgarg4716
      @nitishgarg4716 3 года назад

      @@zainansari1057 ok

  • @shunmuagapriya9877
    @shunmuagapriya9877 3 года назад

    my files image a how to display my emulator view example status download app view

  • @tanishq7046
    @tanishq7046 4 года назад +1

    first comment. Love it fast

  • @mohitnakum
    @mohitnakum 4 года назад +1

    👏👏

  • @abraiyan7984
    @abraiyan7984 4 года назад +1

    First one.

  • @manishsaxena2974
    @manishsaxena2974 2 года назад

    can we save file in app only that are not access by gallary??