Jump to content
sandeepm

video is not uploading in php

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.

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...