Use the WP media uploader dialog for uploading a form attachment (non-admin). Offering progress and drag and drop feedback

I am building a simple contact form (non-admin) that has an attachment field. Of course I can just handle the upload via WP’s wp_handle_upload function. However, I would like to give my visitors a more user friendly experience and manage the upload via wp’s media upload “pop-up”. Offering them upload progress feedback, drag’n drop etc. I know that this is normally admin only but is there a way to use this upload dialog for normal (non-registered, non-logged in) users?

I’m quite amazed that apparently no one really did this (after quite some searching).

Read More

Thanx!

Related posts

1 comment

  1. Disclaimer: I guess it’s not a real answer and has way to much outside links, but it just won’t fit into the comment format. So this can be considered to be just for information purposes.


    I guess this

    uses about what you’ve already tried.

    But there are possibilities, so you might just have to read a little bit more

    For additional sources take a look at

    This might be interesting too

Comments are closed.