Note that there are some explanatory texts on larger screens.

plurals
  1. POLarge files wont upload
    primarykey
    data
    text
    <p>This is the code for my uploading system, it uploads a file and enters info into mysql,small files work fine but large files dont appear in the ftp, they do make a mysql entry but the entry is empty</p> <pre><code>&lt;?php $count = 0; if ($_SERVER['REQUEST_METHOD'] == 'POST'){ foreach ($_FILES['files']['name'] as $i =&gt; $name) { if (strlen($_FILES['files']['name'][$i]) &gt; 1) { if (move_uploaded_file($_FILES['files']['tmp_name'][$i], 'upload/'.$name)) { $count++; } } } } ?&gt; &lt;?php $link = mysql_connect('server', 'user', 'pass'); if (!$link) { die('Could not connect: ' . mysql_error()); } mysql_select_db(database); $title = $_POST['title']; $path= $name; $description = $_POST['description']; $sql = "INSERT INTO `videos` ( `id` , `title` , `path` , `description` ) VALUES ( NULL , '$title', '$path', '$description' );"; $result=mysql_query($sql); if(! $result ) { die('Could not update database: ' . mysql_error()); } echo "Uploaded successfully\n"; mysql_close(); ?&gt; </code></pre> <p>the Page</p> <pre><code>&lt;body&gt; &lt;div class="wrap"&gt; &lt;form action="upload_script.php" method="post" enctype="multipart/form-data" name="form1" id="form1"&gt; &lt;form method="post" enctype="multipart/form-data"&gt; &lt;input type="file" name="files[]" id="files" multiple directory="" webkitdirectory="" mozdirectory=""&gt; &lt;INPUT TYPE = "Text" VALUE ="title" NAME = "title"&gt; &lt;textarea name="description"&gt;descrtiption&lt;/textarea&gt; &lt;input class="button" type="submit" value="Upload" /&gt; &lt;/form&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    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