add file upload handler for universal deploy