I am a beginner writing website and use WordPress and I am writing plugin that involves profile page (not avatar because this field that I implemented, user can upload image, anything, i.e. Picture of my friends) and I added field upload that browse file from directory and save them to database using WordPress' wp_handle_upload.