Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by unity_EoQvLrO5Uh1WDA · May 27, 2018 at 10:02 AM · platformgooglestorage

how to solve Firebase.Storage.StorageException?

i'm trying to use firebase storage to upload images. and here is what I've tried.

  public void firetalk(string path)
         {
 
             Firebase.Storage.FirebaseStorage storage = Firebase.Storage.FirebaseStorage.DefaultInstance;
 
             Firebase.Storage.StorageReference storage_ref = storage.GetReferenceFromUrl("gs://<myurl>.appspot.com/");
   
             Firebase.Storage.StorageReference art_image_ref = storage_ref.Child("images/innocence.jpg");
 
             art_image_ref.PutFileAsync(path).ContinueWith((Task<StorageMetadata> task) =>
             {
                 if (task.IsFaulted || task.IsCanceled)
                 {
                     Debug.Log(task.Exception.ToString());
                     // Uh-oh, an error occurred!
                 }
                 else
                 {
                     // Metadata contains file metadata such as size, content-type, and download URL.
                     Firebase.Storage.StorageMetadata metadata = task.Result;
                     string download_url = metadata.DownloadUrl.ToString();
                     Debug.Log("Finished uploading...");
                     Debug.Log("download url = " + download_url);
                 }
             });
         }

the firetalk funtion recieves a path and i use PutFileAsync for using the upload using path ,however i'm getting this error..

System.AggregateException: Exception of type 'System.AggregateException' was thrown.

Firebase.Storage.StorageException: Permission denied. Could not perform this operation UnityEngine.Debug:Log(Object) GracesGames.SimpleFileBrowser.Scripts.explorer_script:m_0(Task`1) (at Assets/scripts/explorer_script.cs:85) System.Threading.Tasks.TaskCompletionSource`1:SetException(Exception) Firebase.Storage.StorageReference:CompleteTask(Task`1, TaskCompletionSource`1, Func`1, String, Boolean) Firebase.Storage.cAnonStorey6:<>m0(Task`1) System.Threading.Tasks.TaskCompletionSource`1:SetException(Exception) Firebase.Storage.cAnonStorey0:<>m_0() Firebase.Storage.Future_StorageMetadata:SWIG_CompletionDispatcher(Int32) Firebase.AppUtilPINVOKE:PollCallbacks() Firebase.AppUtil:PollCallbacks() Firebase.Platform.FirebaseAppUtils:PollCallbacks() Firebase.Platform.FirebaseHandler:Update() Firebase.Platform.FirebaseMonoBehaviour:Update()

any gueses?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

84 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Firebase with Unity instantiate new data 1 Answer

WWW Resolving host timed out 2 Answers

Possible to use the Google Custom Search API from within Unity? 1 Answer

Can i give a APK file to a "stranger"? 1 Answer

The type or namespace name `GoogleMobileAds' could not be found. Are you missing a using directive or an assembly reference? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges