Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

File size ignored for file upload

  • christianl
  • christianl's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 9 months ago #230219 by christianl
File size ignored for file upload was created by christianl
Please help us help you and fill where relevant:
Your LimeSurvey version:  LimeSurvey Community Edition Version 5.3.24+220711
Own server or LimeSurvey hosting: own (Apache 2.4.64, PHP 7.4)
Survey theme/template: default fruity
==================
I added a file upload question to my survey and changed the max upload file size in the question settings to 10000.
In the php.ini I changed the upload_max_filesize and post_max_size to 10M.
I also added the 'max_filesize' option with '10240' to the config.
But Limesurvey ignores this all and let's me only upload file up to the size of 2048 kb.
"Sie können png, gif, doc, odt, jpg, jpeg, pdf, png, heic unter 2048 KB (pro Datei) hochladen."
Were can I change this attitude?

Best

Please Log in to join the conversation.

  • christianl
  • christianl's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 9 months ago #230666 by christianl
Replied by christianl on topic File size ignored for file upload
No one ever had this?

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 9 months ago #230671 by holch
Replied by holch on topic File size ignored for file upload
I don't think that this is a LS issue. I would search in the PHP settings for these limits. Here it very much depends on your installation. I had cases where there was more than one place where this was set, depending on the hosting environment.

Is this a server completely setup by you? Or is it from a hosting company?

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 9 months ago #230673 by holch
Replied by holch on topic File size ignored for file upload
Just tested it in LS

Sorry, this file is too large. Only files upto 10240 KB are allowed.


I could upload a file with 6.978 KB, but when I tried another file with 11.170 KB I got this error message.

The 10.240 KB where set under "Maximum file size allowed (in KB)".

I doubled it to 20.480 KB and now I get this info in the file upload question:

You can upload png, gif, doc, odt, jpg, jpeg, pdf, png, heic, mp3 under 16384 KB each.


So for me this means, that somewhere in my server configuration I have a limit of 16384, just like you have a limit of 2048kb somewhere. Now you need to find where...

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

  • christianl
  • christianl's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 9 months ago #230691 by christianl
Replied by christianl on topic File size ignored for file upload
Found it. In my case it has been the option mysqlnd.net_cmd_buffer_size in php.ini

Please Log in to join the conversation.

More
1 year 9 months ago #230730 by jelo
Replied by jelo on topic File size ignored for file upload

Found it. In my case it has been the option mysqlnd.net_cmd_buffer_size in php.ini
 
Not so sure about that. The fileupload is normally placing files into a upload folder of the survey. Why will the database setting make a difference when not involved?

Depending on your stack on the server, the bottleneck can be in webserver, php or anywhere in between.
But mysqlnd.net_cmd_buffer_size is unlikely for an unmodified LS v5. Would be surprised to see BLOBs  inside the Database of LimeSurvey.
 

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose