20 questions for “File Upload Handling”

Found in 1 field. Select a question to see its full answer.

Information Technology

20 questions in 5 technologies

#QuestionTechnologyTopicLevel
1How do you move an uploaded file from its temporary location to a permanent storage location using move_uploaded_file? PHP › File Upload HandlingPHPFile Upload HandlingBeginner
2How should you validate an uploaded file's type and size before accepting it, and why is checking only the file extension considered insufficient for security? PHP › File Upload HandlingPHPFile Upload HandlingIntermediate
3How does PHP handle file uploads submitted through an HTML form, and what information does the $_FILES superglobal provide? PHP › File Upload HandlingPHPFile Upload HandlingBeginner
4How do you handle multiple file uploads submitted from a single form field, and what does the resulting $_FILES array structure look like? PHP › File Upload HandlingPHPFile Upload HandlingIntermediate
5How should uploaded file names be sanitized and randomized to avoid security risks and naming conflicts when storing files on the server? PHP › File Upload HandlingPHPFile Upload HandlingIntermediate
6What security risks arise from allowing file uploads into a publicly accessible directory, and how do you prevent uploaded files from being executed as scripts? PHP › File Upload HandlingPHPFile Upload HandlingAdvanced
7How should a large scale application design its file upload architecture to handle high volumes of uploads reliably, including virus scanning and offloading storage to a dedicated service? PHP › File Upload HandlingPHPFile Upload HandlingAdvanced
8What security risks are associated with file handling operations that involve user supplied file paths, and how does path traversal attack prevention work? PHP › File Handling & File System FunctionsPHPFile Handling & File System FunctionsAdvanced
9What HTTP status code and response should be returned when an upload fails validation (wrong type, too large, missing file)? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesBeginner
10How do you validate an uploaded file's actual content type (not just its client-supplied extension or Content-Type header) to prevent malicious file uploads? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesIntermediate