Max Size Error Message Problem

Frostoman 30 Mar, 2013
Hello. I set up a simple form with the upload file dialog. Max Size in KB - 1024.

Max Size Error Message Problem image 1

When I send a small file (for example - 1.6 MB), I get the correct error message:

Max Size Error Message Problem image 2

If I send a biggest file (for example - 2.3 MB), I get something like this:

Max Size Error Message Problem image 3

In php.ini I have:

max_execution_time = 120
max_input_time = 120
memory_limit = 64M
upload_max_filesize = 16M
post_max_size = 8M

What could be the reason? Please, help!
GreyHead 30 Mar, 2013
Hi Frostoman ,

Please post a screenshot of the Upload Files action settings.

Bob
Frostoman 31 Mar, 2013
On Submit Upload Files Action:

Max Size Error Message Problem image 4

Max Size Error Message Problem image 5

Event Loop:

Max Size Error Message Problem image 6

File Upload Element:

Max Size Error Message Problem image 7
GreyHead 31 Mar, 2013
Hi Frostoman,

Everything there looks OK. Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
Max_admin 01 Apr, 2013
Hi,

Please try to remove the "12" from the field name, fields names should not start with digits, please make the change in both places, do you still get the same problem ?

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 01 Apr, 2013
Hi Max,

Well spotted I missed the 12 completely :-)

Bob
Max_admin 01 Apr, 2013
Hi Bob,

No problems, but I'm not sure if this is the real source of the issue!🙂

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Frostoman 06 Apr, 2013

Please try to remove the "12" from the field name



I tried. It did not help ((( Maybe the problem is not in the component? Maybe the problem in my Joomla...?
Max_admin 07 Apr, 2013
Hi,

Please drag a "Custom code" action after the upload action and use this code:
<?php print_r2($_FILES); ?>


then show me the output displayed after the form is submitted (with big file error)

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Frostoman 10 Apr, 2013

Please drag a "Custom code" action after the upload action

then show me the output displayed after the form is submitted (with big file error)



Hi. I did it, but with big file I see only "1". With small file I see:

Array
(
    [frames_input_file] => Array
        (
            [name] => 7YGaMSaS9Vw.jpg
            [type] => image/jpeg
            [tmp_name] => /tmp/phprwvZIg
            [error] => 0
            [size] => 149368
        )

)

Data Array:

Array
(
    [chronoform] => Frames
    [event] => submit
    [Itemid] => 329
    [option] => com_chronoforms
    [view] => form
    [frames_name] => Роман
    [frames_phone] => 03
    [frames_email] => mymail@gmail.com
    [frames_birth] => 85
    [frames_input_file] => 20130410221942_7YGaMSaS9Vw.jpg
    [frames_submit] => ОТПРАВИТЬ
    [e92a001f0a387ddd1065213b8f5af6bf] => 1
    [_PLUGINS_] => Array
        (
            [upload_files] => Array
                (
                    [frames_input_file] => Array
                        (
                            [name] => 20130410221942_7YGaMSaS9Vw.jpg
                            [original_name] => 7YGaMSaS9Vw.jpg
                            [path] => /home/gorlport/public_html/components/com_chronoforms/uploads/Frames/20130410221942_7YGaMSaS9Vw.jpg
                            [size] => 149368
                            [link] => http://www.0624.com.ua/components/com_chronoforms/uploads/Frames/20130410221942_7YGaMSaS9Vw.jpg
                        )

                )

        )

)

Validation Errors:

Array
(
)



Max Size Error Message Problem image 8
Max Size Error Message Problem image 9
Max_admin 11 Apr, 2013
Hello,

Ok, could you please try to remove the "Custom code" BEFORE the "upload files" ? that would display some debug even if there is an error, please post that here!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Frostoman 11 Apr, 2013
Array
(
    [frames_input_file] => Array
        (
            [name] => IMG_8988.jpg
            [type] => 
            [tmp_name] => 
            [error] => 1
            [size] => 0
        )

)
GreyHead 12 Apr, 2013
Hi Frostoman,

PHP Error Code 1 (see the debug) is "Value: 1; The uploaded file exceeds the upload_max_filesize directive in php.ini. "

You should check the setting there and then increase it to cover the size of files that you need to upload. You may need to check with your web host to find out how to change php.ini settings on your server.

Bob
Frostoman 12 Apr, 2013

In php.ini I have:

max_execution_time = 120
max_input_time = 120
memory_limit = 64M
upload_max_filesize = 16M
post_max_size = 8M



I attach the file size is 2.8M

May be a limit somewhere else?

My php.ini file (in zip archive): http://www.ex.ua/view_storage/808644086476
GreyHead 12 Apr, 2013
Hi Frostoman,

Please check the Site Admin | System Information | PHP Information page on your site to see of this is the value that is in use. It is possible to have more than one php.ini file on a site.

Please check with your web-host also.

Bob
alexcre 08 May, 2013
Hi all,

I have the same problem that Frostoman. I have checked System => PHP information and my upload_max_filesize is 10mb. I have tried to upload a file of 3mb and I have the message:
Array
(
[frames_input_file] => Array
(
[name] => xxxxxx.jpg
[type] =>
[tmp_name] =>
[error] => 1
[size] => 0
)

)

Any idea about this problem?

Thanks and regards,
GreyHead 08 May, 2013
Hi alexcre,

Hmmm, that [error] => 1 says that the upload_max_filesize directive is the problem (see here ). That's generated by the PHP file upload code independently of ChronoForms.

Bob
alexcre 09 May, 2013
Hi Bob,

Thanks for your response. I have found my error:

I had this in my php.ini file:
upload_max_filesize = 10M


I have added this and now is working correctly:

post_max_size = 10M


Best regards,
GreyHead 09 May, 2013
Hi alexcre,

Well found, I didn't think of that but it makes sense.

Bob
This topic is locked and no more replies can be posted.