diff --git a/front/front_pages/3_Upload.py b/front/front_pages/3_Upload.py index 107324b..304e662 100644 --- a/front/front_pages/3_Upload.py +++ b/front/front_pages/3_Upload.py @@ -10,7 +10,7 @@ uploaded_file = st.file_uploader("Choose a file", type=['fit', 'fits']) -app_type = ["application/fit", "application/fits", "image/fit", "image/fits"] +app_type = ["application/fit", "application/fits", "image/fit", "image/fits", "application/octet-stream"] if uploaded_file is not None: token = st.session_state["user_token"]["token"] diff --git a/front/login.py b/front/login.py index e083547..a9ceb91 100644 --- a/front/login.py +++ b/front/login.py @@ -63,7 +63,7 @@ def auth_user(username, password): token = response.json() return True, token elif response.status_code != 200: - return False, response.json() + return False, response.text def create_user(username, password, email):