WP 3.6 Custom upload folder in plugin
-
Hi,
I’m writing a plugin for property listings. A property can have x number of images attached to it and I’m using the new media uploader to upload these images. However, it seems impossible to organize the media in the latest version.
I would like to save my images to different folders, i.e.
/wp-content/uploads/[PLUGIN_NAME]/[OBJECT_NO]…on the page where the images are added, I have to set the OBJECT NO in a var or something. I’ve managed to change the upload dir, but the setting is not passed to the async-upload.php script.
I have spent the last 5 hrs to search for a solution on this, but haven’t found any. It would be very bad to have to go back to an earlier version of WP, where I know this was possible. Could someone help me out on this, please?
- The topic ‘WP 3.6 Custom upload folder in plugin’ is closed to new replies.