Secure File Uploads in a Client Portal: Why Protecting the Record Is Not Enough, and How to Test File Privacy
The risks of file uploads, eight protections, a testing checklist, limits and costs, data protection points and common mistakes.
On this page
Security · Files
The risks of file uploads, eight protections, a testing checklist, limits and costs, data protection points and common mistakes.
Last updated: October 2026. Written by Athar Ahmad, Certified Bubble.io Developer and Tech Architect, Simple Automation Solutions.
Quick answer
Files are often the most sensitive content in a client portal, and protecting the database record does not automatically protect the attached file. Apply access rules to attachments, treat file addresses as sensitive, link every file to a record, restrict types and sizes, never put sensitive file addresses in emails, log access, plan retention and deletion, and test by opening file links while logged out and as another client. Check the platform’s current file privacy settings. This is general information, not legal advice.
Key takeaways
- A protected record does not guarantee a protected file; test logged-out and cross-account access.
- Send a link to the portal, not the document, in emails.
- Restrict file types and sizes; plan retention and deletion.
- Log uploads, downloads and deletions for sensitive files.
- Use multiple test accounts and retest after changes.
In this guide
- Why do file uploads need special care?
- Risks to design against
- How to protect uploaded files
- A testing checklist
- Limits and costs
- Data protection points
- Common mistakes
- How we approach it
- Frequently asked questions
Bubble’s features and settings change over time, so check its current documentation for exact options.
Why do file uploads need special care?
In a client portal, files are often the most sensitive thing the app holds: identity documents, contracts, financial statements, medical letters. A database record may be well protected while the file attached to it is reachable by anyone who obtains its address. File handling is one of the most commonly overlooked parts of app security, and one of the easiest to test.
Risks to design against
| Risk | What could happen |
|---|---|
| Guessable or shareable file addresses | Someone with a link can open a file without logging in |
| Record protected, file not | Privacy rules cover the record, but the attachment remains reachable |
| Wrong person sees the file | A client can reach another client’s document through the interface or a search |
| Harmful uploads | A user uploads malware or an unexpected file type |
| Oversized or excessive uploads | Costs and performance suffer |
| Files kept forever | Retention and data protection problems |
| Files in emails | Attachments sent in emails escape your controls |
How to protect uploaded files
- Apply access rules to attachments, not just records. Use the platform’s settings for who can view attachments, and check what they do. See our security guide.
- Treat file addresses as sensitive. Understand whether a file can be opened by anyone who has its link, and use the platform’s private-file options or an access-controlled delivery method where available.
- Link every file to a record, such as a matter or client, so rules can follow the record.
- Restrict file types and sizes to what the workflow needs.
- Do not echo sensitive file addresses in emails or notifications. Send a link to the portal, so the user must log in.
- Log uploads, downloads and deletions for sensitive files. See our audit trail guide.
- Plan retention and deletion. Delete files when they are no longer needed, and remember backups.
- Scan or review uploads where the risk justifies it, particularly if files go to staff who open them.
A testing checklist
| Test | What you are checking |
|---|---|
| Open a file link while logged out | Whether it opens without authentication |
| Open a file link as a different client | Whether another client can reach it |
| Search or filter for files as a low-permission user | Whether files outside their records appear |
| Change IDs or parameters in the address | Whether you can reach other users’ files |
| Upload unexpected types and large files | Whether limits and checks work |
| Delete a record | Whether its files are removed or left behind |
| Inspect notification emails | Whether sensitive file addresses appear |
Test with at least two client accounts and one staff account, and record the results. Retest after any significant change.
Limits and costs
- Storage and bandwidth may have limits and costs depending on the plan.
- Large files affect speed. Consider size limits and compression.
- Previews, thumbnails and bulk downloads add load. See workload units.
- For very large or specialised files, such as video or high-resolution drawings, consider a dedicated storage service connected through an integration.
Data protection points
- Uploaded documents often contain personal data, so apply minimisation, retention and access rules.
- Keep a record of where files are stored and who processes them. See our data processing agreement guide.
- Support deletion and export requests for individuals’ documents.
- Take care with special category data such as health information.
This is general information, not legal advice. Take advice for your jurisdiction.
Common mistakes
- Assuming a protected record means a protected file.
- Emailing documents instead of linking to the portal.
- No file type or size limits.
- No deletion process, so files accumulate.
- Never testing logged-out access to file links.
- Treating screenshots of the interface as proof of security.
How we approach it
Simple Automation Solutions designs file handling as part of access control in client portals and tests it with multiple accounts before launch. We do not promise that any configuration is perfect, and we recommend independent review for highly sensitive material. Builds start at $3,500, and a $345 Discovery Sprint, credited toward the build, includes file and retention requirements in the PRD. See what to cut before you build.
Frequently asked questions
Are uploaded files in a Bubble app private?
That depends on how access is configured. A protected record does not automatically mean a protected file, so check the platform’s attachment and file privacy settings and test logged-out and cross-account access.
How do I test file privacy?
Open file links while logged out and as a different client, try changing identifiers in addresses, search as a low-permission user and check notification emails for exposed addresses.
Should I email documents to clients?
Avoid it for sensitive files. Send a link to the portal so the user must log in.
How long should I keep uploaded files?
As long as needed for your purpose and legal duties, then delete them. Set a retention schedule and take advice.
What file types should I allow?
Only those the workflow needs, with sensible size limits.
Want your portal’s file handling tested?
Email us what clients upload and who needs access. We will review file privacy and recommend fixes.
Athar Ahmad, Certified Bubble.io Developer and Tech Architect, Simple Automation Solutions
About Simple Automation Solutions (SA Solutions)
Simple Automation Solutions is a Bubble.io development studio led by Athar Ahmad, a Certified Bubble.io Developer and Tech Architect. It builds web and mobile apps, client portals and SaaS products for founder-led businesses such as law firms, accounting firms, boutique agencies and consultants. Services include a free 30-minute Idea Audit, a $345 Discovery Sprint (a Product Requirements Document delivered within 24–48 hours, credited toward the build) and builds starting at $3,500. Website: sasolutionspk.com.
Other posts
Ready to build your product?
Book a free 30-minute call, or hire a certified Bubble.io developer.
Book a free callHire a Bubble developer