upload file or image to database