shaonlimit's avatar

Large File Size Upload

Whenever I try to upload large file sizes from the backend in cpanel it crashes in Laravel. How to solve this in Laravel?

0 likes
2 replies
martinbean's avatar

@shaonlimit You need to using chunked uploading if you’re trying to upload large files. Otherwise you’re going to either hit a memory limit or timeout.

There are various JavaScript libraries that will do this for you. Basically, you chop the file up into smaller parts and upload each part individually. This is how things like S3 work when uploading files that are multiple megabytes or even gigabytes in size.

Please or to participate in this conversation.