Concept Flow - File type validation
Receive file upload request
Extract file info (name, mimetype)
Check if file type is allowed?
No→Reject upload with error
Yes
Accept file and continue processing
Send response
The server receives a file upload, checks its type, rejects if invalid, or accepts if valid.