You probably need to up your "max_execution_time" in your php.ini file and your "fastcgi_read_timeout" in your nginx.conf
The page has expired due to inactivity?
Hello,guys.. I'am using digital ocean server..
you can upload video file for test here... http://159.65.22.195/file/test
When I uploaded between 5 to 10 Mb video file,It can work well.But if I uploaded over 20 Mb video file, it show error like that
"The page has expired due to inactivity.
Please refresh and try again."
I have been change php.ini post_max_size = 2000M upload_max_filesize = 2000M
also I have been try like that
class VerifyCsrfToken extends Middleware
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
'route'
];
}
after file upload loading is finished show like that "file is required".
sometime,I need to upload nearly 1 GB. Also,I want to make up file uploading speed. anyone can suggest me.pls
here my controller
$file = $request->file('file')
$filename = $file->getClientOriginalName();
$file->move(public_path().'/videos',$filename);
$getID3 = new \getID3;
$_file = $getID3->analyze('videos/'.$filename);
$duration_string = $_file['playtime_string'];
// Format string to be 00:00:00
$test = $duration_string;
if(strlen($test) == 4){
$duration = "00:0" . $test;
}
else if(strlen($test) == 5){
$duration = "00:" . $test;
}
else if(strlen($test) == 7){
$duration = "0" . $test;
}
$video = Viedo::create([
'name' => $name,
'viedo_url' => $filename,
'time' => $duration
]);
No, don't delete that php.ini for the cli, then you'll have other problems.
You edited this file (/etc/php/7.2/apache2/php.ini) and restarted apache?
- max_execution_time = 300 (that's 5 minutes, you'll want bigger to upload large files)
- max_input_time = 300 (same here)
- post_max_size = 10M (you won't be able to upload files (or anything in POST) larger than 10M)
- upload_max_filesize = 10M (same as above, except relates to files only)
It seems you didn't edit the right file, or didn't restart the server.
Please or to participate in this conversation.