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.
Did you get faster with an other tool?
@sr57 No, not other tool.
@programmer99
So, Laravel cannot do "magic" for this point
-1- compress the file if not already done
-2- see @tykus answer
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 But my file is uploading through with laravel php file uploading code
@programmer99 incorrect - laravel php file uploading code does nothing until the file is actually transferred.
@tykus Ohk, Thanks for this advice. i'will see it.
Please sign in or create an account to participate in this conversation.