AttributeError: __enter__ while passing .xml via HTTP Post to pd.read_xml()

Solution
filestorage = request.files['file']
            file=filestorage.read()