sandeepm Posted May 11, 2016 Share Posted May 11, 2016 While uploading a video, not uploading but image and files are uploading. The array after showing array Array( [file] => Array ( [name] => vlc-record-2016-05-08-21h02m18s.mp4 [type] => [tmp_name] => [error] => 1 [size] => 0 )) can any one please help me. Link to comment Share on other sites More sharing options...
Ingolme Posted May 11, 2016 Share Posted May 11, 2016 It has an error code of 1 which you can look up in the PHP manual: http://php.net/manual/en/features.file-upload.errors.php According to the manual, error code 1 is this: UPLOAD_ERR_INI_SIZE Value: 1; The uploaded file exceeds the upload_max_filesize directive in php.ini. It means the file you uploaded is too large. You should have your script handle errors and tell the user in words what happened. Link to comment Share on other sites More sharing options...
sandeepm Posted May 12, 2016 Author Share Posted May 12, 2016 Ok, But i am uploading only 200kb video and it's not reading temp_name and type why? Link to comment Share on other sites More sharing options...
Ingolme Posted May 12, 2016 Share Posted May 12, 2016 There was an error. The error code says that the file you uploaded is larger than the maximum file size allowed by php.ini. Link to comment Share on other sites More sharing options...
dsonesuk Posted May 12, 2016 Share Posted May 12, 2016 By default its usually 2MB, so that seem strange? Link to comment Share on other sites More sharing options...
Ingolme Posted May 12, 2016 Share Posted May 12, 2016 It might be on a free web host that gives strict limitations. Either that or the server is badly configured. How short does a video have to be to only be 200kb? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now