is there away to get image/video urls that already been uploaded to FirabseStorage in already old upload process without to upload again?

huangapple go评论53阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年5月14日 20:15:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/76247427.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定