title: How to save large files in mysql database
body: <p>I'm trying to upload a 10Mb file in mysql database, the datatype of the field is LONGBLOB and I have already configured the max allowed packet in my.ini file but I still can't save the file. Files lower than 10Mb can be saved in the database so I'm wondering why it can't be saved. Are there any other places I need to check to get this to work?</p>
  
  <pre><code>max_allowed_packet = 1024M
  </code></pre>
  
  <p>This is how I get the data:</p>
  
  <pre><code>$data = $dbLink-&gt;real_escape_string(file_get_contents($_FILES['uploaded_file']['tmp_name']));
  </code></pre>