Skip to content

Instantly share code, notes, and snippets.

View musafci's full-sized avatar
🎯
Focusing

Md. Abu Musa musafci

🎯
Focusing
View GitHub Profile
@musafci
musafci / 1_README.md
Created July 13, 2024 17:54 — forked from ajaxray/1_README.md
Uploading large files in Laravel (Chunked upload)
@musafci
musafci / 1_README.md
Created July 13, 2024 17:53 — forked from ajaxray/1_README.md
Upload to S3 compliant storage directly from Frontend

Upload files to object storage / CDN directly from the Frontend

This is a demonstration of uploading files to S3 compliant storage. This implementation is using Laravel (backend) and AlpineJS (frontend).

How it works

  1. User selects a file on frontend
  2. Javascript makes a request to the backend for getting a TemporaryUploadUrl.
  3. On receiving the signed, temporary URL, Javascript pushes the file to S3 directly from front-end.