Forums

File Upload - Large File

Zachary88 25 Jun, 2015
Hello community,

in the File Upload "large" files don't work. I have set the limit of 1048576 KB (1 GB), but already 30 MB does not work, file independently. Small files goes. No errors in the debugger...

Can someone help me?


Regards Zach
Zachary88 25 Jun, 2015
Thanks. I've already read a lot of it ... Small files also work. Only relatively largefiles not ... Although I have set it to 1GB.
GreyHead 25 Jun, 2015
Hi Zach,

You probably don't want to upload 1GB files from a form - there has to be a better way,

What are the limits in your PHP.ini file - check the PHP Info tab in the Site Admin to see?

Bob
Zachary88 25 Jun, 2015
Hi Bob,

at PHP Information I do see for example:
post_max_size 8M
upload_max_filesize 128M


Regards Zach
GreyHead 25 Jun, 2015
Hi Zach,

Then you should be OK for a 30Mb file - try adding a Custom Code action with this code in the On Submit event
<?php
echo'<div>$_FILES: '.print_r($_FILES, true).'</div>';
?>
and add a Debugger action. Submit the form and see if the $_FILES array shows any error codes.

Bob
Zachary88 25 Jun, 2015
I add the Custom Code, nothing change...

debugger:
$_FILES: Array ( )
Data Array

Array
(
    [option] => com_chronoforms5
    [chronoform] => Datei-Upload
    [event] => submit
)

Array
(
)

Errors

Array
(
)

Debug Info

Array
(
)


if success:
$_FILES: Array ( [datei] => Array ( [name] => P1020815_LR_PS.jpg [type] => image/jpeg [tmp_name] => /tmp/phpIDZFmb [error] => 0 [size] => 6680659 ) )
Data Array

Array
(
    [option] => com_chronoforms5
    [chronoform] => Datei-Upload
    [event] => submit
    [button2] => Abschicken
    [datei] => 20150625104204_P1020815_LR_PS.jpg
)

Array
(
    [datei] => Array
        (
            [name] => 20150625104204_P1020815_LR_PS.jpg
            [original_name] => P1020815_LR_PS.jpg
            [path] => uploads/20150625104204_P1020815_LR_PS.jpg
            [size] => 6680659
            [link] => uploads/20150625104204_P1020815_LR_PS.jpg
        )

)

Errors

Array
(
)

Debug Info

Array
(
    [1] => Array
        (
            [Files Upload] => Array
                (
                    [0] => Upload routine started for file upload by : datei
                    [1] => uploads/20150625104204_P1020815_LR_PS.jpg has been uploaded successfully.
                )

        )

)



What is "post_max_size 8M" in PHP Information?


Regards Zach
Zachary88 25 Jun, 2015
Hi Bob,

that is the reason of 8M? I have to set higher in the PHP Configuration at the server, right?


Zach
GreyHead 25 Jun, 2015
Hi Zach,

Yes I think so - php configuration is not my specialty.

Bob
Vollover 15 Jul, 2015
Hi Zach,

I'm just wondering if you already set the file size limit in the Joomla too. I am not sure if it is necessary...
This topic is locked and no more replies can be posted.