Search code examples
wordpressfile-uploaduploadify

Uploadify upload doesn't start - forbidden location?


i'm currently trying to implement "UPLOADIFY" to a wordpress template page. I implemented it well, because almost everything is working now, except the Upload doesn't start, but the reason therefore is propably not wordpress.

It's propably the folder I set where i want to upload the files to. The folder lies in my root of the page and normally i'm connecting to it with an ftp client. If i call the folder in my browser with http://www.mywebsite.com/fileupload the browser tells me forbidden.

However, that's not the only folder which is not working. it doesn't actually matter which folder i'm creating and what permissions i give it, the upload will not start.

<script type="text/javascript">
$(document).ready(function() {
    jQuery('#fileselect').uploadify({
        'uploader': '<?php bloginfo('template_url'); ?>/uploadify/uploadify.swf',
        'script': '<?php bloginfo('template_url'); ?>/uploadify/uploadify.php',
        'folder': 'http://www.mydomain.com/test', //or just /test
        'multi' : 'true',
        'cancelImg': '<?php bloginfo('template_url'); ?>/uploadify/cancel.png'
    });
}); 
</script>

i tried creating a new directory in my root of my website called "test" and i gave it all permissions 777. However the upload will not start.

do you guys have an idea, what i could do wrong? is there a debug mode or so?

please guys help me, i would love to make uploadify working.


Solution

  • in your $(document).ready function you need to add

    'auto': true,
    

    Also I would recommend removing the quote from multi since it is a boolean not a string

    <script type="text/javascript">
    $(document).ready(function() {
        jQuery('#fileselect').uploadify({
            'uploader': '<?php bloginfo('template_url'); ?>/uploadify/uploadify.swf',
            'script': '<?php bloginfo('template_url'); ?>/uploadify/uploadify.php',
            'folder': 'http://www.mydomain.com/test', //or just /test
            'multi' : true,
            'auto'  : true,
            'cancelImg': '<?php bloginfo('template_url'); ?>/uploadify/cancel.png'
        });
    }); 
    </script>