MySQL server has gone away error shown when submitting form with big attachments