-3

I am searching for a script to upload a video with PHP, I just uploaded photos and other files with that script, but it isn't working with videos.

if(ISSET($_POST['upload']))  
    {
        $fichier = $_FILES['multiple_uploaded_files']['name'] ;
                 move_uploaded_file($_FILES['multiple_uploaded_files']['tmp_name'], 'img/'.$fichier);
                 echo $fichier."  //  ";
    }
    ?>
<form method="POST" action="" enctype="multipart/form-data" >
    <input name="multiple_uploaded_files" type="file">
    <input name="upload" value="upload" type="submit" >
</form>
チーズパン
  • 2,752
  • 8
  • 42
  • 63
  • share your PHP configuration and logs from the server. There is nothing we can do to help you with additional details – Adam Jan 26 '16 at 11:30
  • What errors do you get? What file type are you trying to upload and how big is it? The size might make a difference. – putvande Jan 26 '16 at 11:33
  • 3
    *"Ijust uploaded Photos and other files with that script , but it isnt working with videos."* isn't working how? Any errors? What. Explain the situation. – ʰᵈˑ Jan 26 '16 at 11:33

1 Answers1

1

You need to set the value of upload_max_filesize and post_max_size in your php.ini :

; Maximum allowed size for uploaded files.
upload_max_filesize = 40M

; Must be greater than or equal to upload_max_filesize
post_max_size = 40M

After modifying php.ini file(s), you need to restart your HTTP server to use new configuration.

Little Phild
  • 785
  • 1
  • 6
  • 17