Note that there are some explanatory texts on larger screens.

plurals
  1. POVideo upload file error
    primarykey
    data
    text
    <p>I have an upload video form that works perfectly when upload a small avi file. This is my php code used to place the video in a folder of my choice</p> <pre><code>$path = pathinfo($_FILES["file"]["name"]); $ext = $path['extension']; if ($ext == "avi" || $ext == "mp4" || $ext == "mpg" || $ext == "mov" || $ext == "wmv" || $ext == "flv"){ if ($_FILES["file"]["error"] &gt; 0){ echo "Return Code: " . $_FILES["file"]["error"] . "&lt;br /&gt;"; } else{ echo "Upload: " . $_FILES["file"]["name"] . "&lt;br /&gt;"; echo "Type: " . $_FILES["file"]["type"] . "&lt;br /&gt;"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb&lt;br /&gt;"; echo "Temp file: " . $_FILES["file"]["tmp_name"] . "&lt;br /&gt;"; if (file_exists("videos/" . $_FILES["file"]["name"])){ echo $_FILES["file"]["name"] . " already exists. "; echo "&lt;a href = './videochannel.php'&gt;Return to Channel&lt;/a&gt;"; } else{ move_uploaded_file($_FILES["file"]["tmp_name"],"videos/" . $_FILES["file"]["name"]); echo "Stored in: " . "videos/" . $_FILES["file"]["name"]; echo "&lt;a href = './videochannel.php'&gt;Return to Channel&lt;/a&gt;"; } } } else{ echo "That is not a supported file type. Please try again. &lt;a href = './videochannel.php'&gt;Return to Channel&lt;/a&gt;"; } ?&gt; </code></pre> <p>But when I upload an mp4 I get " return code 1 " which if im not mistaken has to do with the max upload size which i have changed to 200M in my php.ini. It still didn't work. This also has says it is not a supported file type when uploading any of the other options.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload