Is it possible to upload file to media folder using form submit handler

Jul 10 at 7:39 PM
I want the user to upload to media folder using form submit handler.