1

recently I downloaded the new uploadify plugin for multiple file uploads. It was perfect until i tried to upload a movie about 700MB. After some searching i found than i can't upload any file over 10MB.

Here is my jquery script:

    <script type="text/javascript">
    <?php $timestamp = time();?>
    $(function() {
        $('#file_upload').uploadify({
            'formData'     : {
                'timestamp' : '<?php echo $timestamp;?>',
                'token'     : '<?php echo md5('unique_salt' . $timestamp);?>'
            },
            'auto'     : false,
            'progressData' : 'speed',
            'buttonText' : 'Choose files...',
            'swf'      : 'uploadify.swf',
            'uploader' : 'uploadify.php',

        });
    });
</script>

Please help !!!

alexalikiotis
  • 179
  • 2
  • 2
  • 12
  • 1
    possible duplicate of [PHP - Maximum Total Upload Size?](http://stackoverflow.com/questions/727736/php-maximum-total-upload-size) –  Jul 24 '13 at 20:12

1 Answers1

0

Changing the limit on Uploadify

Set the size limit!

'sizeLimit':1024*1024*1024*2 //2GB

Altogether now...

$(function() {
    $('#file_upload').uploadify({
        'formData'     : {
            'timestamp' : '<?php echo $timestamp;?>',
            'token'     : '<?php echo md5('unique_salt' . $timestamp);?>'
        },
        'auto'     : false,
        'progressData' : 'speed',
        'buttonText' : 'Choose files...',
        'sizeLimit': 1024*1024*1024*2,
        'swf'      : 'uploadify.swf',
        'uploader' : 'uploadify.php',

    });
});

You may likely increase the size limit because straight 700MB might not be enough for your image. If it doesn't work, do 800MB

EDIT I revised the code to use 2G file size limit instead.

Changing it in PHP

Go to your php.ini file and set the following parameters:

upload_max_filesize = 2047M
post_max_size = 2047M

PHP is likely your problem because 10MB is the default hard limit

Kirk Backus
  • 4,776
  • 4
  • 32
  • 52