英文:
is there away to get image/video urls that already been uploaded to FirabseStorage in already old upload process without to upload again?
问题
以下是已翻译的内容:
例如,我有以下步骤:
1- 我上传了一段视频给Alex,当他在画画时
FirebaseStorage.instance.ref('chatMedia/$randomId').putData(uint8List);
2- 以后(几分钟、几秒钟或可能几天后),我想上传已经在过去上传过的同一段Alex视频...
有没有办法获取getDownloadURL()
而不必重新上传它?
英文:
For example i have the following steps
1- i uploaded video For Alex while he drawing
FirebaseStorage.instance.ref('chatMedia/$randomId').putData(uint8List);
2- later (after minutes or seconds or maybe days ) i want to upload the same Alex video that i already uploaded it in the past ..
is there away to get that getDownloadURL()
without to upload it again ?
答案1
得分: 1
通常,在上传完成后,您会调用getDownloadURL
一次,并将结果保存在与上传图像路径关联的数据库记录中。您还可以根据需要多次调用getDownloadURL
来获取URL。
英文:
Normally you call getDownloadURL
once after the upload completes, and save the result somewhere in a database record associated with the path of the uploaded image. You can also call getDownloadURL
as many times as you want to get a URL whenever it's needed.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论