Firebase Storage - Image preview is permenantly loading

前端 未结 3 1290
旧时难觅i
旧时难觅i 2021-01-21 23:03

I\'ve started working with firebase storage and firebase functions recently. Right now I\'ve been developing file upload from functions to storage .

I\'ve got it working

3条回答
  •  梦谈多话
    2021-01-21 23:37

    In my case I added metadata while uploading and it loading as it showed in image but when I'm refresh page after 3 min I found that it upload correctly , so as Cafn explain if it not matter of metadata you should wait until it loaded

      $uploadedObject=$bucket->upload($imageFile, [
                'name' => 'Image_Name',
                "metadata" => [  "contentType"=> 'image/png'],
            ]);
    

提交回复
热议问题