Concept Flow - File validation (size, type)
Receive file upload request
Check file size <= max allowed?
No→Reject: File too large
Yes
Check file type in allowed types?
No→Reject: Invalid file type
Yes
Accept file and process/save
Response sent
The server receives a file, checks its size and type, rejects if invalid, otherwise accepts and processes it.
