Jump to content
Sign in to follow this  
xorpas

Firebase Storage and tnethttpclient

Recommended Posts

hellow

when try to send image to storage in firebase  with tnethttpclient Using this code I get access denied  How can Resolve It

 

ms.LoadFromFile(op.FileName);
    link := 'https://firebasestorage.clients6.google.com/v0/b/chat-9641e.appspot.com/o?name=userProfiles/test.png?key=AIzaSyDptyDgZ9Zl-i06AI2cNJxSDky1mKs_fIo';
    Memo1.Text := HTTP.post(link, ms).ContentAsString;

when using api or token I have a same result

 

 

{
  "error": {
    "code": 403,
    "message": "Permission denied."
  }
}

 

Edited by xorpas

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×