Making PDF files private
Last updated
Last updated
Bubble provides you with the ability to link files to a specific database record and inherit the privacy rules associated with that record.
See this section of the Bubble manual for further details on private files
To make PDF files created by PDF Creator private, follow these steps:
On the 'Generate PDF Creator' action, check the 'Make this file private' option
Specify a 'thing' to attach the file to in the 'Attach file to' field. In the above example, we're attaching the file to the Current User, which means the uploaded file will inherit all the privacy rules associated with the Current User.
These are the privacy rules that are set on the user data type in our example:
This means that when the user is logged in, they can still access the PDF. But if another user tries to access the URL associated with the PDF they'll get blocked: