How can you upload an image from within a settings page?
I am developing a plugin. Which has a form.
The form contains the following fields.
- Course Name
- Course file.
The course file field is of type file from where I will upload a file. The name of the file I will store in database and the the uploaded file should save in the wp-content/uploads directory.
How will I do this in wordpress. I am new to plugin development so please help me out.