Page 1 of 1
New import tool filesize limit
Posted: 2021-09-03 10:22
by ddelpiano
I have a big (around 800K) .csv file to import.
The new import tool, when I try to import the file, exits with an error stating that I'm exceeding filesize limit of 100K.
My php.ini file has a filesize limit of 1024M
Where can I modify that limit? I am unable to locate it.
I will be most grateful if anyone can hep me.
Dario Delpiano
Re: New import tool filesize limit
Posted: 2021-09-03 14:19
by pfrumkin
Hi Dario,
Sorry if you've already been down this path.
I found in admin\pageUploadCSV.php a call in upload() to getUploadedFile, passing the value PHP_INT_MAX. Do you know what PHP_INT_MAX is set to on your system? To experiment, you could hardcode some other values in that getUploadedFile call, or go directly to admin\incFunctions.php and tweak getUploadedFile() where it checks $MaxSize.
Good luck.
~Paul
Re: New import tool filesize limit
Posted: 2021-09-04 08:24
by ddelpiano
Thank you for your quick answer. I will check and let you know.
Bye
Dario Delpiano
Re: New import tool filesize limit
Posted: 2021-09-04 08:36
by ddelpiano
I've checked: PHP_INT_MAX is hardware dependent. See here:
https://www.php.net/manual/en/reserved.constants.php
And I've not been able to reproduce the problem when running my application in a (more performing) VM.
So I fear that's time for an hardware upgrade!
Thank you, anyway, for your support.
Dario Delpiano