Jump to content

video is not uploading in php


sandeepm

Recommended Posts

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...