Having issue uploading file

Please am having an issue uploading file to the database.

i will need a resource or lines of code to be able to upload file to the db without making use of a model in the process

from the form -> controller method will be appreciated.

Thanks in advance