New import tool filesize limit

Please report bugs and any annoyances here. Kindly include all possible details: steps to reproduce, expected result, actual result, screenshots, ... etc.
Post Reply
ddelpiano
Posts: 8
Joined: 2021-07-17 15:08

New import tool filesize limit

Post by ddelpiano » 2021-09-03 10:22

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

pfrumkin
Veteran Member
Posts: 157
Joined: 2020-02-18 17:58
Location: Albuquerque, New Mexico USA

Re: New import tool filesize limit

Post by pfrumkin » 2021-09-03 14:19

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

ddelpiano
Posts: 8
Joined: 2021-07-17 15:08

Re: New import tool filesize limit

Post by ddelpiano » 2021-09-04 08:24

Thank you for your quick answer. I will check and let you know.
Bye

Dario Delpiano

ddelpiano
Posts: 8
Joined: 2021-07-17 15:08

Re: New import tool filesize limit

Post by ddelpiano » 2021-09-04 08:36

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

Post Reply