Use wp_upload_dir() correctly
It seems that you’re either calling wp_upload_dir too early, when it has not yet been included in the scope (which is nearly impossible), or calling it without WordPress being even loaded (highly probable). If you’re using some sort of iframe to provide uploadify.php directly then WordPress will not be available for it. Include wp-load.php to … Read more