Implement a secure file upload
Prompt that secures a file upload with checked file types, limits, own file names and controlled access. Paste it into an AI tool of your choice, which then secures uploads.
- Topic
- Apps & prototypes
- Type
- Prompt
- Level
- Intermediate
- Time
- about 10 min
Results depend on the tool, the model and what you enter.
Result preview
Example: written by our editors, not real AI output.
Allowed: JPG, PNG, PDF; content checked by file signature, the extension alone does not count Limits: 10 MB per file, 5 files per report, 20 uploads per hour and account Name: random ID, original name only for display Storage: private object storage without a public address Delivery: only via short-lived links after a permission check, as a download Photos: strip location data; delete 90 days after the report is closed Tests: PDF with script, renamed executable, 50 MB file, link to another user's report Assumption: the storage provider's virus scan is available
Fill in
What you type stays in this browser window. We store and send nothing.
- profile pictures
- invoices as PDF for accounting
- job application documents
- spreadsheets for a data import
- photos for damage reports
- cloud object storage
- a folder on your own server
- database as a binary field
- storage of an external service
- not decided yet
- Python with Django
- Node.js with Express
- PHP with Laravel
- Java with Spring
- Ruby on Rails
Your prompt
You have edited the prompt. Changes in the fields above no longer overwrite it.
This is an instruction for an AI, not the result itself.
Where this prompt works
These AI tools are a good fit for this prompt:
How to use it
- Fill in the fields or tap a suggestion. Leave out names, addresses and other personal data.
- Copy the finished prompt into an AI tool of your choice.
- Before the feature goes live, try the finished rules with a renamed file, a very large file and a link to another user's file.
Why does this work?
Most upload problems arise because the file name, type or path is accepted unchecked. Checking content, assigning names yourself and controlling access per file closes the most common gaps.
Tips
- Applications, invoices and photos often contain personal data, so also decide how long files are kept and when they are deleted.