File Uploads to outside container #161
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
Use the UPLOAD_PATH and organize your environment (K8S, Docker, ...) so that it lands on the folder you want. The uploaded files will always have a temp name to avoid doubles incase multiple operator upload files. The metadata is sent in the file-field (with temp en original name) so that you can trigger your own script/automation to rename and move the uploaded files. In your case, it would be as simple as adding the following volumes mapping, in the assumption you use docker compose :
this will mount your local folder to the default upload location (you wouldn't even need to change the environment variable) |
Beta Was this translation helpful? Give feedback.
Use the UPLOAD_PATH and organize your environment (K8S, Docker, ...) so that it lands on the folder you want.
My choice of PERSISTENT_FOLDER is because that is generally a pass-through mapping in docker/k8s to an outside-container location (mother-host, nfs share, lun, ...)
The uploaded files will always have a temp name to avoid doubles incase multiple operator upload files. The metadata is sent in the file-field (with temp en original name) so that you can trigger your own script/automation to rename and move the uploaded files.
In your case, it would be as simple as adding the following volumes mapping, in the assumption you use docker compose :