Oct. 5, 2023, 5:15 p.m. | Eduardo Marques

DEV Community dev.to

In this post I will show you how you can stream videos from a S3 bucket with Partial Content support (HTTP 206).


To give a bit of context, I have a service where users can upload their files, which are stored in a AWS S3 bucket. For security, the files in the bucket can not be accessed directly, only through my API.


When a user requests a file I stream the entire file directly from S3.


This approach is …

aws aws s3 context files http node node.js partial s3 s3 bucket security service stream support upload videos

SOC 2 Manager, Audit and Certification

@ Deloitte | US and CA Multiple Locations

Open-Source Intelligence (OSINT) Policy Analyst (TS/SCI)

@ WWC Global | Reston, Virginia, United States

Security Architect (DevSecOps)

@ EUROPEAN DYNAMICS | Brussels, Brussels, Belgium

Infrastructure Security Architect

@ Ørsted | Kuala Lumpur, MY

Contract Penetration Tester

@ Evolve Security | United States - Remote

Senior Penetration Tester

@ DigitalOcean | Canada