I'm building a plugin in which I want to upload the media.

I'm using <input type="file" /> which works as expected. But I'm thinking to reuse the WordPress drag drop media uploader.

Note: I have a solution in which I upload the media from popup window.

But, I'm looking for image dropable placeholder in which user upload the image.

  • Yes you can. There already a solution here . Please do search before new question. Also there is a great blog regarding this topic here Aug 12 '17 at 9:39
  • I have not cleverly describe the question. Actually this media uploaders open the popup and in which we drag and drop media. But I'm looking for the drag drop placeholders. In which user direct drop the media. Instead of popup. Like WordPress Importer v2. I'll check it. Thanks. Aug 12 '17 at 9:46
  • your answer is here , you can do it simple. stackoverflow.com/questions/17668899/…
    – Sajjad Sky
    Aug 12 '17 at 20:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.