Can't change the file upload size

The release related discussions, plans and questions.
Locked
tlinkjira
TestLink user
Posts: 9
Joined: Thu Jan 29, 2009 12:02 am

Can't change the file upload size

Post by tlinkjira »

I have changed
define ('TL_IMPORT_LIMIT', 10485760) in custom.config
and
upload_max_file_size =10M in php.ini

then restarted Apache

but still can't upload a bigger file. any suggestions?
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

There is also limit for size of one line.
tlinkjira
TestLink user
Posts: 9
Joined: Thu Jan 29, 2009 12:02 am

Post by tlinkjira »

Well, I'm just trying to change the max size. What's the max size of file upload in 1.7.4 and how do we exactly make that change in config.

Test Link is a great tool. You guys have done great work. Hats off to you.
unixadmin007
Advanced user
Posts: 18
Joined: Thu Jan 29, 2009 5:24 pm

Post by unixadmin007 »

change limit in your php.ini file, by default its 2MB
tlinkjira
TestLink user
Posts: 9
Joined: Thu Jan 29, 2009 12:02 am

Post by tlinkjira »

I have already made following change

define ('TL_IMPORT_LIMIT', 10485760) in custom.config
and
upload_max_file_size =10M in php.ini

what else I need to change. This is in 1.7.4.
unixadmin007
Advanced user
Posts: 18
Joined: Thu Jan 29, 2009 5:24 pm

Post by unixadmin007 »

u changed it to your TL configuration, but you need to change in PHP setting as well, locate php.ini file and search for ; Maximum allowed size for uploaded files.
upload_max_filesize =
and change it to 10M
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

You can call the phpinfo() function to find the location of your php.ini file, it will also tell you the current values for the following settings that we need to modify

* file_uploads
* upload_max_filesize
* max_input_time
* memory_limit
* max_execution_time
* post_max_size

TestLink has only these two maxima:

Code: Select all

/** some maxima related to importing stuff in TL */
// Maximum uploadfile size 
// Also check your PHP settings (default is usually 2MBs)
define('TL_IMPORT_LIMIT', '204800'); // in bytes

/** maximum line size of the imported file */
define('TL_IMPORT_ROW_MAX', '10000'); // in chars
Write to google exact message you receive as error if it doesn't help.
Locked