programmer99's avatar

How to make 500 mb file fast in laravel

Right now i 'm uploading file with this method. I mention below.

$file = $request->file('file'); $file->move(public_path().'/folder/', $file->getClientOriginalName());

If any guy any i idea how to make file uploading faster in laravel. Please answer below.

Thanks In Advanced.

0 likes
8 replies
sr57's avatar

Did you get faster with an other tool?

sr57's avatar

@programmer99

So, Laravel cannot do "magic" for this point

-1- compress the file if not already done

-2- see @tykus answer

tykus's avatar

The problem is not so much moving the uploaded file; it is the upload itself! You could investigate chunking the upload or an asynchronous upload (as Dropzone does), but ultimately you need to transfer 500MB over the wire!

tykus's avatar

@programmer99 incorrect - laravel php file uploading code does nothing until the file is actually transferred.

Please or to participate in this conversation.