upload - internal server error

Submitted by inf3rno on 2013-04-04

Cannot upload larger file than 2M. I already set the php.ini: post_max_size, upload_max_filesize, memory_limit, max_execution time. I have IIS7, I tried to filter the request in web.config too, but did not help. I got nothing in php error log so I guess the problem is in the IIS configuration...

The simplest way to change this limit in IIS is to open IIS manager, open Request Filtering and click Edit Feature Settings. You can then change the limit.

Regards,
Michał

Turned on debug on webissues server, I tried to upload a file about 1.5mb

With the web client 1.0.5 I got detailed error message:

The following error(s) occured while processing the request:

Unhandled System_Db_Exception: MySQL server has gone away in D:\creation\software developer\projects\webissues\document root\system\db\mysqli\engine.inc.php on line 264
    Stack trace:
    #0 D:\creation\software developer\projects\webissues\document root\system\db\mysqli\engine.inc.php(249): System_Db_Mysqli_Engine->handleError(Object(mysqli))
    #1 D:\creation\software developer\projects\webissues\document root\system\db\connection.inc.php(485): System_Db_Mysqli_Engine->endTransaction(false)
    #2 D:\creation\software developer\projects\webissues\document root\system\db\transaction.inc.php(54): System_Db_Connection->endTransaction(false)
    #3 D:\creation\software developer\projects\webissues\document root\system\api\issuemanager.inc.php(606): System_Db_Transaction->rollback()
    #4 D:\creation\software developer\projects\webissues\document root\client\issues\addattachment.php(97): System_Api_IssueManager->addFile(Array, Object(System_Core_Attachment), 'Chocolate.pdf', '')
    #5 D:\creation\software developer\projects\webissues\document root\client\issues\addattachment.php(59): Client_Issues_AddAttachment->submit()
    #6 D:\creation\software developer\projects\webissues\document root\system\web\component.inc.php(100): Client_Issues_AddAttachment->execute()
    #7 D:\creation\software developer\projects\webissues\document root\system\web\application.inc.php(77): System_Web_Component->run()
    #8 D:\creation\software developer\projects\webissues\document root\system\core\application.inc.php(210): System_Web_Application->execute()
    #9 D:\creation\software developer\projects\webissues\document root\system\bootstrap.inc.php(127): System_Core_Application->run()
    #10 D:\creation\software developer\projects\webissues\document root\client\issues\addattachment.php(101): System_Bootstrap::run('Common_Applicat...', 'Client_Issues_A...')
    #11 {main}
    Unhandled System_Db_Exception: MySQL server has gone away in D:\creation\software developer\projects\webissues\document root\system\db\mysqli\engine.inc.php on line 264
    Stack trace:
    #0 D:\creation\software developer\projects\webissues\document root\system\db\mysqli\engine.inc.php(249): System_Db_Mysqli_Engine->handleError(Object(mysqli))
    #1 D:\creation\software developer\projects\webissues\document root\system\db\connection.inc.php(485): System_Db_Mysqli_Engine->endTransaction(false)
    #2 D:\creation\software developer\projects\webissues\document root\system\db\transaction.inc.php(54): System_Db_Connection->endTransaction(false)
    #3 D:\creation\software developer\projects\webissues\document root\system\core\application.inc.php(496): System_Db_Transaction->rollback()
    #4 [internal function]: System_Core_Application->handleException(Object(System_Db_Exception))
    #5 {main}
    Unhandled System_Core_Exception: Uncommitted transaction in D:\creation\software developer\projects\webissues\document root\system\core\application.inc.php on line 394
    Stack trace:
    #0 [internal function]: System_Core_Application->shutdown()
    #1 {main}

So the problem is with the file saving in database, not the php execution time, max file size, memory limit, etc...