Skip to content
Discussion options

You must be logged in to vote

Halo! Great question - handling large file uploads is a common challenge we all face in Laravel projects. Let me share how I typically approach this:

Chunked Uploads Strategy

For files over 100MB, chunked uploads are definitely the way to go. I usually use Resumable.js or Dropzone.js on the frontend:

// Example with Dropzone
Dropzone.options.myDropzone = {
    chunking: true,
    chunkSize: 10 * 1024 * 1024, // 10MB chunks
    parallelChunkUploads: true,
    retryChunks: true
};

Backend handling with Laravel:

public function handleChunk(Request $request)
{
    $file = $request->file('file');
    $chunkIndex = $request->input('chunkIndex');
    $totalChunks = $request->input('totalChunks')…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rizalulul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants