Add a file to the database using code only

Hello All,

Is it possible to use code to allow a user to upload a file to the wix database without using the wix provided upload button. If so does anyone have a code sample of this?

Thanks, talk to you soon.

Chris