In this blog i will show you how to use wordpress media box model for upload images, videos and other files in wordpress. Wordpress provide media box model for upload media into our wordpress files. Mainly wordpress stores media in uploads folder which you find in wp-content folder at root directory. You can see when you click on a set featured image in any post type in wordpress a model box open and you just have to upload or select any images that model box is wordpress media box.
Follow the given steps for use wordpress meida box.
Steps : 1
Step : 2
Step : 3
Now you called our wp media box. you just have to select the image or file and get its properties for save and retrieve. For example :
Now you can check in our console of browser that how much proerties we get of our selected media now save that data in wordpress data base and retrieve the value at wordpress frontend.