Upload Files not working for Large Files

More
1 year 7 months ago #134312 by bremnerr
bremnerr created the topic: Upload Files not working for Large Files
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
Attachments:

Please Log in to join the conversation.

More
1 year 7 months ago - 1 year 7 months ago #134328 by jelo
jelo replied the 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
Last Edit: 1 year 7 months ago by jelo.

Please Log in to join the conversation.

More
1 year 7 months ago - 1 year 7 months ago #134348 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 1 year 7 months ago by DenisChenu.

Please Log in to join the conversation.

More
1 year 7 months ago #134360 by bremnerr
bremnerr replied the 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:

Please Log in to join the conversation.

More
1 year 7 months ago #134361 by bremnerr
bremnerr replied the 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

Please Log in to join the conversation.

More
1 year 7 months ago #134365 by jelo
jelo replied the 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 following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

More
1 year 3 months ago #139705 by duristef
duristef replied the 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

Please Log in to join the conversation.

More
11 months 1 day ago #146184 by euanc
euanc replied the topic: Upload Files not working for Large Files
Bumping this. I'm having the same problem. Is there any fix in store?

Thanks!

Please Log in to join the conversation.

More
11 months 1 day ago #146191 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
9 months 4 days ago #148767 by ConradNg
ConradNg replied the 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

Please Log in to join the conversation.

More
9 months 4 days ago #148769 by jelo
jelo replied the 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

Please Log in to join the conversation.

More
1 month 3 weeks ago #159065 by Joffm
Joffm replied the 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.

Please Log in to join the conversation.

More
1 month 3 weeks ago #159073 by DenisChenu
DenisChenu replied the topic: Upload Files not working for Large Files
Maybe in 2.50+160620 there are an issue, but again and again : "Of all three possible values (upload_max_filesize, post_max_size and max_filesize) the lowest one will be shown and used." + the settings in the upload question.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!