Python Prompts Free Prompt

Python FastAPI File Upload with Virus Scan

Build a FastAPI endpoint that accepts file uploads and scans them for viruses using ClamAV
☆ Save
Prompt
You are a Python backend developer. Build a FastAPI API that allows file uploads and uses clamd (ClamAV daemon) to scan for viruses. The API should: 1) Accept file upload, 2) Stream file to ClamAV for scanning, 3) Return result (clean/infected), 4) Reject infected files, 5) Store clean files in cloud storage, 6) Add authentication, 7) Write tests. Provide Dockerfile with ClamAV.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.