All fields

“File Uploads & Media Processing” in Information Technology

19 questions across 1 technology.

Information Technology

19 questions in 1 technology

#QuestionTechnologyTopicLevel
1What is multipart/form-data, and why does a Node.js server need special middleware (like multer) to handle file uploads? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingBeginner
2How would you validate and restrict uploaded file types and sizes using multer to prevent malicious or oversized uploads? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingIntermediate
3How would you stream a large file upload directly to processing (like virus scanning or transcoding) without first saving the entire file to disk? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingIntermediate
4Why should CPU-intensive media processing like image resizing or video transcoding typically not run directly inside an Express request handler? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingIntermediate
5How would you implement direct-to-S3 file uploads from a client, avoiding routing large file uploads through your Node.js server entirely? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingAdvanced
6How would you implement resumable/chunked file uploads in Node.js to handle very large files over unreliable network connections? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingAdvanced
7What is the security risk of trusting a client-supplied filename for an uploaded file, and how do you mitigate it? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingAdvanced
8Why should an application typically avoid storing uploaded files directly on the same server instance that runs the web application? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingBeginner
9How would you implement a progress indicator for a large file upload from the client's perspective, given the Node.js server side? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingIntermediate
10How would you scan uploaded files for malware before accepting them into permanent storage in a Node.js application? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingAdvanced
11How would you validate an uploaded image's actual dimensions and reject ones that don't meet minimum or maximum size requirements? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingIntermediate
12What is the difference between multer's diskStorage and memoryStorage engines? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingBeginner
13What is the difference between upload.single(), upload.array(), and upload.fields() in multer? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingIntermediate
14How would you process and resize an uploaded image in Node.js using the sharp library, and why is sharp generally preferred over pure-JavaScript alternatives? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingAdvanced
15How would you generate a video thumbnail in Node.js using ffmpeg via a library like fluent-ffmpeg? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingAdvanced
16What is the difference between fs.rename() and manually copying then deleting a file, particularly across different filesystems or drives? Node.js › File System (fs) ModuleNode.jsFile System (fs) ModuleIntermediate
17How would you handle file uploads in a GraphQL API, given GraphQL's standard JSON-based transport doesn't naturally support binary file data? Node.js › GraphQLNode.jsGraphQLIntermediate
18How do you pass data between the main thread and a worker thread using postMessage(), and what are the limits on what can be sent? Node.js › Clustering & Worker ThreadsNode.jsClustering & Worker ThreadsIntermediate
19What is path traversal, and how does the path module (specifically path.normalize() and careful path.join() usage) help prevent it as a security vulnerability? Node.js › Path & OS ModulesNode.jsPath & OS ModulesAdvanced