Welcome to the LimeSurvey Community Forum

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

Upload Files not working for Large Files

  • bremnerr
  • bremnerr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 11 months ago #134312 by bremnerr
Hi all, I'm trying to create a survey/form where users have to upload a video clip. Of course this means that the file sizes are quite large, so I tried to compensate for that by setting the Upload File question max filesize to 1048576 and changing php.ini post_max_size and upload_max_filesize to1100M.

This seems to have helped somewhat as I was able to upload a 1MB file with no problem, however when I tried a 2.5MB file, limesurvey rejects it.

Please see the attached screen shot for the error screen and file details:


Im not sure if this is a bug or configuration problem. If anyone has any insight I would be very appreciative!

Thanks!
-Ryan
The topic has been locked.
More
7 years 11 months ago - 7 years 11 months ago #134328 by jelo
Replied by jelo on topic Upload Files not working for Large Files
What version build of Limesurvey is used?
In the screenshot I still see the limit "You can upload mov, m4v, mp4 under 2048 KB each".

Did you change the limit which is in the options of the fileupload question type?
manual.limesurvey.org/Question_type_-_Fi...d_.28max_filesize.29

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Last edit: 7 years 11 months ago by jelo.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 11 months ago - 7 years 11 months ago #134348 by DenisChenu
Replied by DenisChenu on topic Upload Files not working for Large Files
And : your phpinfo please :

Note: The final value shown to the survey participant is also depending on PHP settings, like post_max_size and upload_max_filesize. Of all three possible values (upload_max_filesize, post_max_size and max_filesize) the lowest one will be shown and used.


Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 7 years 11 months ago by DenisChenu.
The topic has been locked.
  • bremnerr
  • bremnerr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 11 months ago #134360 by bremnerr
Replied by bremnerr on topic Upload Files not working for Large Files
Yes, I changed the post_max_size and upload_max_filesize in php.ini to 1100M. There was no max_filesize in my php.ini file.
Attachments:
The topic has been locked.
  • bremnerr
  • bremnerr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 11 months ago #134361 by bremnerr
Replied by bremnerr on topic Upload Files not working for Large Files
Yes I set the Maximum file size allowed to 1048576 in the question settings.

I am aware that the dialogue box says "under 2048 KB each", I don't know if that is a bug or some other issue.

Version is 2.50+ Build 160408
The topic has been locked.
More
7 years 11 months ago #134365 by jelo
Replied by jelo on topic Upload Files not working for Large Files

bremnerr wrote: Yes I set the Maximum file size allowed to 1048576 in the question settings.

Please try a lower maximum file size in Limesurvey and check again. E.g. "20240"
I am not using LS 2.5. Let's see if the message "under 2048 KB each" changes. If not, I would say there is a bug with Limesurvey itself.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: DenisChenu
The topic has been locked.
More
7 years 7 months ago #139705 by duristef
Replied by duristef on topic Upload Files not working for Large Files
I'm experiencing a similar problem. I've set php.ini relevant values to 20Mb and the maximum size for the question to 5120Kb, but I can only upload files with a max size of 500Kb or so. I'm using LS 2.50+ Build 160620
I would really appreciate any help
Thank you
The topic has been locked.
More
7 years 2 months ago #146184 by euanc
Replied by euanc on topic Upload Files not working for Large Files
Bumping this. I'm having the same problem. Is there any fix in store?

Thanks!
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 2 months ago #146191 by DenisChenu
Replied by DenisChenu on topic Upload Files not working for Large Files

DenisChenu wrote: And : your phpinfo please :

Note: The final value shown to the survey participant is also depending on PHP settings, like post_max_size and upload_max_filesize. Of all three possible values (upload_max_filesize, post_max_size and max_filesize) the lowest one will be shown and used.


Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
More
7 years 1 month ago #148767 by ConradNg
Replied by ConradNg on topic Upload Files not working for Large Files
Hi,

I am also looking at this problem. We are using Lime Version 2.57. Which PHP file should I be editing? Where is this file located within the survey directory?

Kind Regards,
Conrad
The topic has been locked.
More
7 years 1 month ago #148769 by jelo
Replied by jelo on topic Upload Files not working for Large Files
[quote="ConradNg" post=148767I am also looking at this problem. We are using Lime Version 2.57. Which PHP file should I be editing? Where is this file located within the survey directory?[/quote]
Most of the settings are part of the PHP interpreter. The file is mostly called php.ini.
Depending on your hosting environment you can change the settings or not.
PHP.ini is not releated to the Limesurvey installation.

The php.ini contains settings like this:
memory_limit = 64M
upload_max_filesize = 48M
post_max_size = 64M

php.net/manual/features.file-upload.common-pitfalls.php

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: ConradNg
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 5 months ago #159065 by Joffm
Replied by Joffm on topic Upload Files not working for Large Files
The bootstrap fileinput.js allows to set a maxfilesize.
In the file uploader script probably the developers set a max-size, which is obviously necessary.

Of course you can discuss the value.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose