ilex01's avatar

Upload custom file to S3

How do I store customFile.mp4 on S3?

$path = $request->file('customFile.mp4')->store('videos', ['disk' => 's3']);
0 likes
3 replies
winvala's avatar
  1. Create AWS S3 Bucket
  2. Create a User or Add Permissions to the Existing User
  3. Install Laravel AWS S3 Dependencies
  4. Update AWS S3 Configurations in the .env file
  5. Then you can run your code.

Please or to participate in this conversation.