🐛 fix(endpoints.tsx): change returned key from 'filename' to 'file_path' for consistency

🐛 fix(inputFileComponent): update the key used to set the file path to match the change in the backend
The key returned by the endpoint was changed from 'filename' to 'file_path' for consistency. The key used to set the file path in the frontend was updated to match the change in the backend.
This commit is contained in:
Gabriel Almeida 2023-05-31 01:14:30 -03:00
commit f6dbc97d77
2 changed files with 4 additions and 4 deletions

View file

@ -43,7 +43,7 @@ async def create_upload_file(file: UploadFile, client_id: str):
# Cache file
file_path = save_uploaded_file(file.file, file_name=client_id)
return {"filename": file_path}
return {"file_path": file_path}
# get endpoint to return version of langflow