I’ve set up an options page for my CPT that contains the drag’n’drop upload area (just like Media → Add New). Basicly, I’ve copied all the relevant stuff from wp-admin/media-new.php and it works like charming.
First of all, I know there are many questions related to this question. But what the problem is that they are all related somehow to jquery.
This answer describes a hack in which it is possible to upload new media to an “old” folder like 2012/12. That hack no longer seems to work in recent WP versions. Meanwhile, all the plugins I can find for media/folder management seem to want to create an entirely new folder hierarchy, and bypass the native WordPress year/month system completely.
I need to load some local images..
I used this code before to load some images
Trying to upload multiple files in randomly generated folder in different path than usual uploads/year/month
by using wp_upload_bits
.
hello i want to use wordpress media library . i want to user see the library when click on button i made and choose a…
I am still getting “X.epub: Sorry, this file type is not permitted for security reasons” despite adding:
Pretty straight forward question, but I’ll provide any clarifications needed.
We are having a problem where uploading images through the media upload tool sometimes times out. Using NewRelic, I’ve tracked it down to wp_unique_filename
, which makes sense I guess because we have over 200,000 images.