Hi,
Hello! trying to upload a file to Firebase storage generates this error, I do not realize that I may be doing wrong. My son rules
service firebase.storage {
match /b/aeropuerto-5c7c3.appspot.com/o {
match /auth/{allPaths=**} {
allow read, write: if request.auth != null;
}
match /public/{allPaths=**} {
allow read;
}
match /user/{userid}/{allPaths=**} {
allow read, write: if request.auth.uid == userId;
}
}
}
My code
Returns the following error
(IOException) java.io.IOException: { "error": { "code": 403, "message": "Permission denied. Could not perform this operation" }}
Previously I'm logged in to Firebase
some help, friends?
regards
Hello! trying to upload a file to Firebase storage generates this error, I do not realize that I may be doing wrong. My son rules
service firebase.storage {
match /b/aeropuerto-5c7c3.appspot.com/o {
match /auth/{allPaths=**} {
allow read, write: if request.auth != null;
}
match /public/{allPaths=**} {
allow read;
}
match /user/{userid}/{allPaths=**} {
allow read, write: if request.auth.uid == userId;
}
}
}
My code
B4X:
File.Copy(Dir,FileName,File.DirInternal,Starter.authex.CurrentUser.Uid)
Starter.storage.UploadFile(File.DirInternal,Starter.authex.CurrentUser.Uid, $"/user/${Starter.auth.CurrentUser.Uid}/foto"$)
Returns the following error
(IOException) java.io.IOException: { "error": { "code": 403, "message": "Permission denied. Could not perform this operation" }}
Previously I'm logged in to Firebase
some help, friends?
regards