Spaces:
Runtime error
Runtime error
update
Browse files
components/services/document.py
CHANGED
|
@@ -89,7 +89,7 @@ class DocumentService:
|
|
| 89 |
|
| 90 |
self.dataset_service.raise_if_processing()
|
| 91 |
|
| 92 |
-
file_location = Path.
|
| 93 |
file_location.parent.mkdir(parents=True, exist_ok=True)
|
| 94 |
with open(file_location, 'wb') as buffer:
|
| 95 |
buffer.write(file.file.read())
|
|
|
|
| 89 |
|
| 90 |
self.dataset_service.raise_if_processing()
|
| 91 |
|
| 92 |
+
file_location = Path(os.environ.get("APP_TMP_PATH", '.')) / 'tmp' / file.filename
|
| 93 |
file_location.parent.mkdir(parents=True, exist_ok=True)
|
| 94 |
with open(file_location, 'wb') as buffer:
|
| 95 |
buffer.write(file.file.read())
|