Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Uploadify - Wordpress
  • Hi,

    Trying to get Uploadify to work together with Wordpress.
    I've implented the code from documentation in a metabox in wordpress admin area.

    I can "select file" and upload it, and Uploadify will show progress, but when I check the destination folder, it's empty.
    The folder has chmod 777 so I don't understand what could be wrong..

    All help appreciated

    <link href="<?php echo get_stylesheet_directory_uri() ?>/uploadify/uploadify.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="<?php echo get_stylesheet_directory_uri() ?>/uploadify/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="<?php echo get_stylesheet_directory_uri() ?>/uploadify/swfobject.js"></script>
    <script type="text/javascript" src="<?php echo get_stylesheet_directory_uri() ?>/uploadify/jquery.uploadify.v2.1.4.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function() {
    $('#file_upload').uploadify({
    'uploader' : '<?php echo get_stylesheet_directory_uri() ?>/uploadify/uploadify.swf',
    'script' : '<?php echo get_stylesheet_directory_uri() ?>/uploadify/uploadify.php',
    'cancelImg' : '<?php echo get_stylesheet_directory_uri() ?>/uploadify/cancel.png',
    'folder' : '<?php echo get_bloginfo('url') ?>/wp-content/uploads',
    'auto' : true
    });
    });
    </script>


  • Try putting an error log statement to see the contents of the $_FILES global. You may have the error reported there.

    Is it failing for all files, even small files? There is an upload file size limit that may be to low for what you are trying to upload.

    If you're still having trouble, you can check out my wordpress plugin, and let me know if it works for you.

    http://wordpress.org/extend/plugins/uploadify-integration/