I don't want user to be able upload a new file which is already exist with the same name in storage,
Here is what I've tried but still getting 403
when I upload a nonexist file.
service firebase.storage {
match /b/projectid/o {
match /{allPaths=**} {
allow read;
allow write: if !resource || request.resource.name == resource.name;
}
}
}