added property to handle file uploads
added file upload
added enctype when uploading files
handle enctype correctly