Like this: Like Loading May 29, at am Reply. June 25, at pm Reply. Valuable comments Cancel reply. If this helped you some time, somewhere!! Dave Thomas. Maarten Dalmijn in Better Programming. Learn to Use New Java Features. O'Reilly Media in oreillymedia.
Application Deployment Strategies. Crishantha Nanayakkara. The images are retrieved from Firebase. Use sign in anonymously of firebase to allow user to access the storage with creating an account. Jayasurya Jayasurya 19 1 1 silver badge 2 2 bronze badges. This work for me isn't enough Sign up or log in Sign up using Google. Sign up using Facebook.
Sign up using Email and Password. Post as a guest Name. Now when user update the information. I have to update the fileName according to current timestamp. So, is it possible to update the file name? The first two options use a lot of bandwidth and if the files are large or changes are frequent, it can drive costs up.
Things like filenames can be dynamic and it's often a good practice to break the link between the filename and the file itself. When writing a file, I would create a generic filename but then store the user-facing name in Firestore.
So here's what Firestore would look like, each document in the images collection has a documentId which matches the image name stored in storage and the url reference. The short answer is, that there is not an option to edit file names after they have been uploaded to Firebase Storage for no API even not with Flutter.
A similar question for an iOS implementation received an answer, that you can download first the image, delete it then from the storage and then reupload it with the new timestamp, as you noted in your question.
But how I would implement this case is, that you always use the Storage module from Firebase in combination with the Firestore. You can use shared preferences from flutter's official plugins. If you need to store just simple values like API token or login data not passwords!
You can use Localstorage. I think If you are going to store large amount of data in local storage you can use sqflite library. It is very easy to setup and I have personally used for some test project and it works fine. I was looking for the same, simple local storage but also with a reasonable level of security. You can use SharedPreferences for small amount of data. But if you have large and complex data then you should use Sqlite Database for local storage in flutter applications.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How to save to local storage using Flutter? Ask Question. Asked 4 years, 11 months ago. Active 25 days ago.
0コメント