Austin Gil

Full Spectrum File Uploads

A single large file upload can crash your server. Discover the streaming architecture that prevents this common and critical vulnerability.

Full Spectrum File Uploads
#1about 2 minutes

Understanding the HTTP fundamentals of file uploads

HTTP is the core protocol for sending files online, and browsers provide APIs like HTML and JavaScript to construct these requests for us.

#2about 4 minutes

How to enable file uploads using standard HTML

Use a form with a POST method, a file input, and the multipart/form-data encoding type to create a basic, accessible file upload feature.

#3about 8 minutes

Improving the user experience with JavaScript form submissions

Intercept HTML form submissions with JavaScript to prevent page reloads and create a smoother user experience while maintaining progressive enhancement.

#4about 7 minutes

Receiving and processing uploaded files in Node.js

Avoid loading large files into memory by using streaming libraries like Formidable to efficiently parse multipart form data and save files to disk.

#5about 8 minutes

Reducing storage costs with object storage solutions

Use S3-compatible object storage as a centralized, scalable, and cost-effective solution for storing user-uploaded files instead of server disk space.

#6about 5 minutes

Optimizing file delivery performance with a CDN

A Content Delivery Network (CDN) caches files on servers globally, reducing latency and delivering assets to users much faster.

#7about 17 minutes

Securing file uploads and protecting against malware

Follow security best practices like file name sanitization, size limits, and content validation, and implement a background process for malware scanning.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

Related Articles

View all articles
DC
Daniel Cranney
Security Basics for Vibe Coders
Vibe coding has become a popular trend in the tech world. With so many tools now available for both developers and non-developers, it’s easier than ever to build projects using natural language, in some cases without touching a line of code along the...
Security Basics for Vibe Coders
DC
Daniel Cranney
Dev Digest 195: End of Likes, JavaScript’s a Zoo, and Messing with Bots!
Inside last week’s Dev Digest 195 . 👎 No more external likes 🤗 Needy programs 📉 The worst selling Microsoft product 🟨 JavaScript engines zoo 🍞 No more toasts! 🤖 Messing with bots 👔 Beware of fake job interviews 🗞️ Join over 150,000 developers alread...
Dev Digest 195: End of Likes, JavaScript’s a Zoo, and Messing with Bots!
CH
Chris Heilmann
Dev Digest 151: SEO in an AI world, security fixes and Doomed PDFs
Inside last week’s Dev Digest 151 . 🔎 How ChatGPT compares to search and what that means for SEO ✂️ Job cuts across the board as companies curb DEI programs 🟨 @Microsoft releases 161 Windows security updates ⚠️ @Google’s OAuth bug endangers million...
Dev Digest 151: SEO in an AI world, security fixes and Doomed PDFs
CH
Chris Heilmann
Building a "shoutout" component in plain HTML/CSS/JavaScript
Every Wednesday we meet at noon to talk about a lot of tech news, tools and resources in something we call WeAreDevelopers Live . We go live on YouTube and afterwards we cut out short videos to post on social media. What we needed was an obvious “sho...
Building a "shoutout" component in plain HTML/CSS/JavaScript

From learning to earning

Jobs that call for the skills explored in this talk.

Fullstack Developer

Fullstack Developer

Fish On Fire
Alkmaar, Netherlands

.NET
React
Node.js
JavaScript
React Native
+1