Upload custom file to S3
How do I store customFile.mp4 on S3?
$path = $request->file('customFile.mp4')->store('videos', ['disk' => 's3']);
@ilex01 Exactly like your code snippet?
Assuming you have
then you can do
$path = $request->file('customFile.mp4')->store('videos', 's3');
- Create AWS S3 Bucket
- Create a User or Add Permissions to the Existing User
- Install Laravel AWS S3 Dependencies
- Update AWS S3 Configurations in the .env file
- Then you can run your code.
Please or to participate in this conversation.