Skip to content

Simple, concrete example of how to upload files to AWS S3 using Laravel

License

Notifications You must be signed in to change notification settings

James-buzz/laravel-file-uploads-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel File Uploads with S3

This repo showcases a simple, concrete example of how to upload files to Amazon S3 using Laravel.

Using S3 offers the advantage of offloading file storage to a dedicated service, which can be more cost-effective and scalable than storing files on your own server.

This project utilises Uppy, a JavaScript file uploader that easily integrates into your frontend application. For handling file uploads on the backend, this project emulates the Uppy Companion server in Laravel.

Credit goes to TappNetwork for providing the original example of this implementation.

Project

The project uses React for the frontend and Laravel for the backend. Laravel Sanctum is used for authentication.

To showcase file uploads in this project, we have created two examples:

  1. Photo Album - Upload photos to an album.
  2. Playground.

Both are accessible from the main page of application when logged in.

Getting started

To get started, follow the guides below:

TODO

  • Add drivers for different upload types
  • Add unit tests
  • Add docker support
  • Enable direct uploads

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is open-sourced software licensed under the MIT license.

About

Simple, concrete example of how to upload files to AWS S3 using Laravel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published