If I remember right you need to chdir()
into your custom uploads directory (before saving anything there) so that paths are correctly processed and saved in meta.
Related Posts:
- Limit Media Library to Given Folder
- Automatically wrap post image in div
- Hide upload image fields for the different media upload popups
- How to retrieve alt attribute for an attachment (uploaded image)?
- I’m using add_meta_box() but want to include TinyMCE editor *and* Media Uploads for each box
- WordPress media uploader – upload tabs not hiding
- Can’t upload format files on media library
- Altered Media Library URLs
- How can I add a Description column to the media library browser screen?
- How to Fix HTTP Error When Uploading Images?
- Uploaded images don’t show in Media Library if there are special characters in IPTC Keywords
- Rename UPLOADS folder with custom WP_CONTENT_DIR
- How to move wp-content (or uploads) outside of the WordPress directory
- media_sideload_image file name?
- Password protect some uploaded files, so only logged-in users can view them
- Add more rows on media picker
- using upload image with media_handle_upload .. but !
- Saving Custom Field in Attachment Window in WordPress 3.5
- Automatic image renaming based on title
- media_handle_upload weird thing
- Looking to display non-image files in Gallery with logo specific to file type
- Get the post attached to a image attachment
- sanitize attachment filename
- Get attachments by user
- Importing media medium setting image gallery / image attachments
- How do I go straight to “Edit More Details” when clicking on an item in the media library?
- Adding File Extensions to Attachment Page Permalinks
- Syncing Avatars across multisite
- How to re-arrange media uploaded using : media_handle_upload() as per year / month
- Insert attachment ID in custom field from media uploader
- How to insert a sitemap within a subsite when using WordPress multisite
- Custom attachments styling in post view
- Add a InfoBox in the media upload window
- Prevent Delete Attachment by URL or When Submit
- custom upload directory only for plugin uploads
- Can I create my own custom Attachment Display Setting?
- Redirect to another page using contact form 7? [closed]
- How to load attachment in media library for current user?
- Installing new theme on running site
- Get images attached to a specific page
- More Fields & Media Upload
- How to query details of images in gallery that is attached to a post
- How to allow .bin files upload?
- Media Upload not working after hiding some elements from functions.php
- Upload multiple image with media_handle_upload with multiple file field [duplicate]
- Attach File Funcion for Common people
- Transferring theme and imported post attachments
- Personalized Gallery what are my options?
- the temporary save folder is wrong
- What is wrong with my wp_insert_attachment code?
- Adding attachment custom field metadata to TinyMCE tag
- wp_delete_attachment doesn’t delete image files / doesn’t work
- How to fix custom add menu page preventing media library from loading
- How do I enable the text editer in my WordPress theme? [closed]
- Is there a way to limit multi upload in media upload box?
- Organizing the Media Library for Cleanup
- controlling whether upload is attached to post or not
- Custom Link In WordPress Media “Attachment Details” Upload Screen
- Attachment Metadata not updated while uploading audio files
- How can I create more “create attachment” custom field – any idea?
- Upload files in wordpress
- Custom image sizes ignored in WP 3.5
- WordPress uploads directory. Featured Images storage
- Is it possible to show related posts on WordPress attachment pages?
- Looking for a lightweight theme using WP3 new tags and features (not 2010) [closed]
- Protecting direct access to PDF and ZIP unless user logged in (without plugin)
- Redirect members to custom page upon logging in through WP admin
- Integrating MailChimp newsletters as post
- WP_Query with the “offset” argument
- Adding “Interesting Tags” & “Ignored Tags” like StackOverflow.com in a WordPress Blog?
- Auto add taxonomy if post has category
- Name/Word Replacement Plugin
- Get page ID outside the loop, matching menu ID
- Bulk edit of EXIF data for jpeg images uploaded in the media library?
- Author Tracking Code!
- Show Featured Post Only On The Homepage
- wordpress media upload given An error occurred in the upload. Please try again later
- order event posts by multiple custom fields
- Change Notice of Password change email subject?
- Deleting my old WordPress site. – issues
- How to assign a custom post title to be the post ID?
- Creating custom page template
- Which delete query is better with prepare or delete
- How to detect when a file has been uploaded?
- How to add page content into another page
- WP_Query: attachment image in “full” size?
- Remove Sidebars from page
- Creating a “Delete”-Button for Metadata userspecific
- Change default Video Player without Plugin
- Changing update message from Newspaper child theme
- Removing extra large generated images disables all crops
- Trying to customise 2011 Child Theme Background Colour
- Can I upload my self hosted WordPress website on GitHub as a project? [closed]
- Need to replace some text string on a title
- Updating the attachment from front end doesn’t show the new change
- How do I map two domains to the same wordpress installation?
- How to save media-form on custom tab
- Multiple Customizers
- Permalink Listing WordPress
- Has the table name in SQL for WordPress changed from WP_posts to WPCS_post?