fixed conversion of enums and added conversion for file uploads