Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

m615's avatar
Level 2

How do I upload larger files to s3?

I have created a MediaAsset model and resource in my project for users so they can attach a asset to a particular product or page.

I have the FileStorage configured to use my s3 bucket and all is working great. I get an error if the file is too large to upload. My users will need the ability to upload videos and images.

Is there a way to configure the File::make field to use s3 file streaming or is there some other configuration or solution I need to consider?

0 likes
5 replies
martinbean's avatar

@m615 You’ll need to look into multi-part uploading if the files are more than a couple of megabytes in size. This will then upload the file in “chunks” to S3.

1 like
m615's avatar
Level 2

Yes I understand that, however what I'd like to know is ... Is there a way to configure the File::make field to upload using chunks ?

martinbean's avatar

@m615 I don’t know what Nova does under the hood. I imagine Nova just treats them as regular HTML file inputs, i.e. uploads the file attached.

jlrdw's avatar

Also AWS actually has articles and "how-to" guides on doing that exact thing.

Edit: Do you need link.

1 like

Please or to participate in this conversation.