All fields

“File Uploads & Streaming Large Files” in Information Technology

26 questions across 2 technologies.

Information Technology

26 questions in 2 technologies

#QuestionTechnologyTopicLevel
1How would you implement resumable/chunked file uploads to support very large files over unreliable network connections? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesAdvanced
2How would you implement direct-to-cloud-storage uploads (bypassing your API server entirely) using pre-signed URLs, and why is this approach preferred for very large files? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesAdvanced
3Why is buffering an entire large file upload in memory (via IFormFile) problematic, and how does streaming avoid this issue? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesIntermediate
4How do you configure IIS or a reverse proxy like nginx to allow large file uploads, given they may impose their own separate size limits beyond Kestrel's? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesIntermediate
5What is the difference between temporary file storage (during processing) and permanent storage for uploaded files, and why should uploads generally not be saved directly to their final destination? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesIntermediate
6How do you support HTTP range requests (partial content downloads) for large file streaming, enabling video seeking or resumable downloads? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesAdvanced
7What 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
8How do you stream a large file back to the client as a download response without loading the entire file into memory first? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesIntermediate
9How 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
10How do you accept and process multiple files uploaded in a single request? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesIntermediate
11How would you implement true streaming file upload using MultipartReader to avoid ASP.NET Core's default buffering behavior entirely? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesAdvanced
12How would you implement virus/malware scanning for uploaded files before they're made available for download by other users? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesAdvanced
13How would you implement upload progress reporting to a client during a large file upload, given HTTP doesn't natively provide this? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesAdvanced
14How do you accept a file upload in an ASP.NET Core controller action using IFormFile? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesBeginner
15How do you configure and enforce a maximum request/file upload size in ASP.NET Core, and what's the default limit? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesIntermediate
16How would you recursively copy an entire directory tree (including all subdirectories and files) using the Files.walkFileTree() method and a FileVisitor implementation? Java › I/O & NIOJavaI/O & NIOIntermediate
17How do you read all bytes or all lines of a small-to-medium text file in a single, concise call using modern NIO.2 utility methods? Java › I/O & NIOJavaI/O & NIOBeginner
18How do complex/composite route segments (combining literal text and a parameter in the same segment, like {fileName}.{extension}) work? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesIntermediate
19How does wrapping a FileInputStream in a BufferedInputStream (or FileReader in a BufferedReader) improve I/O performance, and what's the mechanism behind this improvement? Java › I/O & NIOJavaI/O & NIOIntermediate
20How would you use try-with-resources combined with multiple chained I/O wrapper classes (like FileInputStream wrapped in BufferedInputStream wrapped in GZIPInputStream) to correctly read a compressed file while ensuring all layers are properly closed? Java › I/O & NIOJavaI/O & NIOIntermediate
21How would you use the WatchService API (java.nio.file) to monitor a directory for file system changes (creation, modification, deletion) in real time? Java › I/O & NIOJavaI/O & NIOIntermediate
22How would you implement a catch-all route parameter to handle a variable-depth URL path, like a file browser or wiki-style page hierarchy? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesAdvanced
23How do you handle exceptions that occur during response streaming, after the response has already partially started sending to the client? ASP.NET Core › Error HandlingASP.NET CoreError HandlingAdvanced
24How would you implement a custom BodySubscriber or BodyHandler to stream a very large HTTP response body incrementally, rather than buffering the entire response into memory at once? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientAdvanced
25How do you configure the maximum message size for gRPC requests and responses, and why might the defaults need adjustment? ASP.NET Core › gRPC ServicesASP.NET CoregRPC ServicesBeginner
26How would you write a custom output formatter to support a non-standard format, like CSV, for specific endpoints? ASP.NET Core › Content Negotiation & Output FormattersASP.NET CoreContent Negotiation & Output FormattersAdvanced