Does MySQL BLOB only accept images?
No, you can store anything you want in it. What's failing when you try to upload a file over 10MB is not the SQL, but the PHP code. Either:
the files size limit. Check the value of the
post_max_sizesettings in the php.ini file.
or the operation timing out. This is more likely to be the culprit especially if you've never changed the default values in your php.ini file. The default timeout in PHP is 30 seconds, so your file must be uploaded in less than 30 seconds. You can change it in the php.ini file using the
max_execution_timesetting, or it is better to change it in you code using the
Example, to set the timeout to 2 minutes: