Note that there are some explanatory texts on larger screens.

plurals
  1. POPhp file uploading warning message
    primarykey
    data
    text
    <p>I need to upload a video file. Here's my code</p> <pre class="lang-php prettyprint-override"><code> if(($_FILES["file"]["type"]=="application/octet-stream") || ($_FILES["file"]["type"]=="video/x-ms-wmv")) { if($_FILES["file"]["error"] &gt; 0) { echo "Error: ".$_FILES["file"]["error"]."&lt;br /&gt;"; } else if(file_exists("videos/" . $_FILES["file"]["name"])) { echo $_FILES["file"]["name"] . " already exists. "; } else { move_uploaded_file($_FILES["file"]["tmp_name"],"videos/".$_FILES["file"]["name"]); $filename=$_FILES["file"]["name"]; $type=$_FILES["file"]["type"]; $size=($_FILES["file"]["size"]/1024); $path="".$_FILES["file"]["name"]; if(($ins=mysql_query("insert into achieva_video values('','".$_REQUEST['vname']."','".$_REQUEST['courid']."','".$filename."','".$path."','".$size."','".$type."','Active')"))==true) { header("location:viewcoursevideo.php?ins=1"); } else { echo("&lt;script&gt;alert('Failure Please try again later');&lt;/script&gt;"); } } } else { echo "&lt;script&gt;alert('Invalid File Type');&lt;/script&gt;)"; } </code></pre> <p>I'm bit confused with this warning message when I try to upload a video file.</p> <pre><code>"PHP Warning: POST Content-Length of 9311816 bytes exceeds the limit of 8388608 bytes in Unknown on line 0" </code></pre> <blockquote> <p>I've set the following preferences in the php ini:</p> </blockquote> <pre><code> memory limit = 150M upload file size = 120M post max size = 120M </code></pre> <p>The file has not been updated. it takes long time and just shows this warning.</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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