langflow/src/backend
Gabriel Almeida 28ec8338f0 🐛 fix(endpoints.py): import save_uploaded_file function from cache.base module
🐛 fix(graph/base.py): change file_path assignment to use the new file_path key in value dict
🐛 fix(template/field/base.py): change content key to file_path key in result dict
 feat(endpoints.py): add endpoint to upload file
 feat(cache/base.py): add function to save uploaded file to cache
The save_uploaded_file function was not being imported in the endpoints.py module, causing a NameError when trying to use it. The file_path variable in the Node class was being assigned the value of the content key in the value dict, but it should be assigned the value of the file_path key instead. The content key in the TemplateFieldCreator class was changed to file_path to better reflect its purpose. An endpoint to upload files was added to the endpoints.py module, which uses the save_uploaded_file function from the cache.base module to save the uploaded file to the cache.
2023-05-30 23:40:32 -03:00
..
langflow 🐛 fix(endpoints.py): import save_uploaded_file function from cache.base module 2023-05-30 23:40:32 -03:00
.gitignore refac: langflow_backend -> langflow 2023-03-17 09:50:02 -03:00
Dockerfile refac: langflow_backend -> langflow 2023-03-17 09:50:02 -03:00