Request and Resource Evaluation
In the event of file uploads, downloads and metadata alter its values or At the time of deleting the file. The request to do this processing will happen through request variable. Essentially, the request variable contains vital information about the file, such as the file path, timestamp, and HTTP headers. The request object responsibly includes the user's User ID and authentication payload in the request.auth object. The request object has a few properties, which are auth, params, path, resources, and time.
Security rules cater to file metadata in the resource object, which incorporates key/value pairs of the metadata constructed in the storage object. These properties can be examined in read or write requests ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access