Skip to content

File Uploads to outside container #161

Closed Answered by ansibleguy76
checkifexist asked this question in Q&A
Discussion options

You must be logged in to vote

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 :

  - /local/AF/files:/app/dist/persistent…

Replies: 1 comment 14 replies

Comment options

You must be logged in to vote
14 replies
@ansibleguy76
Comment options

@checkifexist
Comment options

@ansibleguy76
Comment options

@checkifexist
Comment options

@checkifexist
Comment options

Answer selected by checkifexist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants