It easier to implement file uploading programmatically on the custom WordPress plugin using wp_handle_upload() method.
After successfully upload this returns the file path which you can use to store in the MySQL database table or display on the page.
In this tutorial, I create a simple plugin to demonstrate file upload in WordPress.