I am trying to post file over 1MB to MySQL LONGBLOB, it just doesnt do the query, if the file is under 1 MB no problem.
Any Ideas if there could be set limitations in PHP or MySQL?
to read the file i am using following:
$data = "";
$fp = fopen($filename, "rb");
while(!feof($fp))
{
$data .= fread($fp, 1024);
}
fclose($fp);
$data = addslashes($data);
$data = addcslashes($data, "\0");