added file upload functionality for canaries