我正在将图像上传到firebase,然后在上传完成后尝试检索URL,但是我得到了这个错误。Error] Error uploading image: – TypeError: undefined is not an object (evaluating 'snapshot.storageRef.getDownloadURL') — speakers.js:150
TypeError: undefined is not an object (evaluating
Uri downloaduri=taskSnapshot.getDownloadUrl();//here i cant use getdownloadurl() functionnew_prod.child("product image").setValue(downloaduri);我无法使用getdownloadurl .I,已经将图像存储在firebase stor
尝试使用此获取上传到Firebase存储中的图像的URL,但没有关于如何从Task.continueWithTask方法返回downloadUri值的信息。上传文件后,您可以通过在StorageReference上调用getDownloadUrl()方法来获取用于下载文件的URL:
final StorageReferencetask.getExce
它会将它正确地上传到存储和数据库中,但当我重新启动应用程序时,它不会显示出来。我使用filechooser()方法选择文件,并使用fileuploader()上传它。它工作得非常好。
// Get a URLURL保存在数据库中的图像下。当我上传图像并切换到其他页面时,当我返回到此幻灯片时,图像将会显示出来。但每当我关