Thursday, June 30, 2016

increase the upload size in Testlinlk

In Testlink default its only allowed 400kb for upload files. when your uploading files it will show following warning.


To Increase the file size edit the value in config.inc.php
$tlCfg->import_file_max_size_byte =  409600 to the value you want

eg: increasing the value to 100M

 $ sudo nano /var/www/testlink/config.inc.php

import_file_max_size_byte =  '104857600';

ctrl + o save , ctrl + x exit

Restart the Apache

$ sudo service apache2 restart

now you can see the file size if the upload is  100m





5 comments:

  1. Thanks.. Its worked for me.

    ReplyDelete
  2. I was looking for a quick solution. This came first and it worked. Thanks.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Thanks for this post. In case some is looking to do this for AWS Marketplace Testlink instance, the file is located at /opt/bitnami/apps/testlink/htdocs/config.inc.php

    and to restart the service must run
    sudo /opt/bitnami/ctlscript.sh restart

    However, in out case, file upload dialog was not showing 409600 as the max upload size but rather 10485760 (1MB).

    The setting that we needed to change was repository_max_filesize = 10; //MB It was 1 by default.

    ReplyDelete