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 load up a WordPress environment before actually trying to use wp_upload_dir. Alternatively, and much better, include uploadify.php into the WordPress scope instead in your template or hook, whatever you are using to position to the upload form correctly.
Better yet, just use the code inside from the basic demo inside your template file directly without the need for a separate uploadify.php.
Related Posts:
- “Add Media” button in custom plugin
- Allow all file types for upload
- Remote upload file to server B
- What plugin can I use to create a list / slideshow of featured images?
- Any plugin out there that uses WP’s internal image uploader?
- How to upload image with simple form?
- Way to force media uploader use custom image size
- how does wp.media javascript library work?
- How to create an edit media button for slideshow plugin?
- Please select a file error
- How can I add a custom meta value on file upload?
- How to upload thousands of images?
- Extending WP’s upload/insert media functionality
- Generated Images sizes do not match Media Settings Image Size
- How can I use a video header that’s over 8MB?
- Saving/Writing/Adding file to upload folder
- How can I process xml file on upload?
- Admin page: form with enctype=”multipart/form-data” does not transfer its data
- How to import 55k images (uploaded via FTP) into WordPress Media libary? [closed]
- AJAX image upload with a upload progress bar using media_handle_upload
- Is it possible to personalize the Media Library?
- Bulk Image Uploader to create new post from each image [closed]
- Upload file inside plugins options page
- Adding Attachment Display Settings in custom media frame
- Find unused images?
- Media upload not working on theme option in WordPress 3.8.1
- Why does my functions.php cause white-screen and media-library issues?
- How organize uploaded media in WP?
- Plugin or method to delete uploads not in media library?
- Restrict media upload size by format
- wp_generate_attachment_metadata is creating an empty array
- Removing included CSS file that doesn’t exist
- wp.media javascript issue with on select
- How to upload WordPress Images to remote web server and display those images in WordPress gallery [closed]
- Auto move media file to cloud
- transfer a file from one domain to another via wp
- Add custom JavaScript that is a combination of CDN/uploaded files and easily-edited code?
- Media Upload Tab reload and change $_GET
- Plugin Not Working After Being Uploaded To WordPress Plugin Repository
- Bulk Image Upload And Rerrange Functionality
- Redirect to another page using contact form 7? [closed]
- Is it possible for a plugin to force reading and writing of uploaded images to a database instead of to a filesystem?
- adding a button to the media uploader
- Is there a function to list all uploaded images? How can I add one?
- custom uploader in the admin area
- Allowing .rfa Files In Media Upload [duplicate]
- Programatically upload a file to be stored inside blob field in database, NOT on filesystem
- How to accept images at multiple sizes and aspect ratios and display as standardized image size / ratio?
- download button for audio file in post [closed]
- File Uploader – Upload without adding to Media Library
- How programatically cause uploads folder to be created?
- Issue with wp_handle_upload
- Detect plugin/theme installation (via upload)
- Add a file upload field
- WordPress does not allow me to upload a .xml file
- Simple sildeshow/image-upload plugin?
- WordPress not showing manually uploaded files in Uploads folder on Media Library
- Upload PlugIn Button is missing
- How to copy the all WordPress media items to another custom plugin folder?
- Access remote SFTP server via WordPress login?
- how to split and upload a theme on wordpress?
- How to Upload images to a custom folder in upload folder using media uploader
- Is it possible to pull all featured images from WP database only?
- what functions to use to resize images and create DB metadata for them after/during upload?
- the content of the uploads folder gets deleted periodically, how to figure out what causes it?
- Powerpress upload a podcast without creating a post for it
- 500 Internal server error wp_handle_upload_prefilter
- Cannot display wordpress thumbnail
- upload multiple images using wp_handle_upload
- How wordpress handle urls present in db for external wp-content directory
- Remove special characters from filenames
- woocommerce with external ftp site
- multiple image upload using wp_enqueue_media
- Uploading images to custom table
- Not able to upload Plugins/ Theme from Admin backend
- Media library and Upload media problem
- Image paths wrong after migrating with wp-migrate-db-pro media files add-on
- Media Upload to custom database and Custom Directory
- WP default file upload hook not working if used in a plugin
- Where to store media uploaded by the plugin?
- How to install jquery dotdotdot plugin for WordPress?
- How to create a dashboard for logged-in users with custom functionality? [closed]
- How to create an uploads subfolder on a multisite setup?
- How to prevent intermediate images from being created but keep the sizes available for selection in the media library?
- Plugin programming: Uploading a file to a specific folder
- include plugin folder directly in theme folder to load faster page n wp
- Is there a WP-Plugin to convert PNG to GIF? [closed]
- Upload Image to desired directory through plugin
- I want to disable certain file types from upload from dokan description field
- How to rename files during upload to a random string?
- how to get the url of a custom uploaded file
- A way to upload old html pages with all its assets via WordPress admin and to add a fixed menu on top of those (a la Wayback Machine)
- wp_handle_upload – specified file failed upload test
- Uploading a plugin as .zip
- Increased max_upload_filesize, but still can’t upload plugin [closed]
- How to connect WordPress media to another host?
- Upload the images folder with sub-folders directly to server
- upload_mimes is getting ingored, how to add a new mime type?
- I want to allow certain file types on dokan upload files
- stop resize button for wordpress media