I am developing a wordpress plugin and I need to have a field where I can upload an image. Since wordpress has a very handly uploader it would be great if I could use that.
anyone know if that’s possible?
Thanks
I am developing a wordpress plugin and I need to have a field where I can upload an image. Since wordpress has a very handly uploader it would be great if I could use that.
anyone know if that’s possible?
Thanks
You must be logged in to post a comment.
If you only want to upload a file, you don’t need the media uploader. A simple form is all you need.
To call the media uploader you need a link like this:
You’ll maybe have to append your URL to media-upload.php to make it working.
YOu can use wordpress default media file uploader by using this code and simply retrieve link of image in jquery
Hi you can use the following code,