From b13ce5ca0cdbdbb0bcba3643b02f0ae7bc1f09fe Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Thu, 19 Sep 2024 01:39:34 -0400 Subject: [PATCH] update --- .../Deep Dive: Discord-Linux Automated Container Platform.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/markdown/Deep Dive: Discord-Linux Automated Container Platform.md b/markdown/Deep Dive: Discord-Linux Automated Container Platform.md index 9eb786c..d007792 100644 --- a/markdown/Deep Dive: Discord-Linux Automated Container Platform.md +++ b/markdown/Deep Dive: Discord-Linux Automated Container Platform.md @@ -2149,10 +2149,15 @@ app.post('/', multer({ dest: "uploads/" }).single('myFile'), (req, res) => { ``` #### Step-by-Step Process: + **Receive File**: The file is uploaded to a temporary directory. + **Verify Key**: The server checks the provided key to ensure the upload is authorized. + **Check Container**: The server checks if the container exists and is running. + **Copy File**: If everything checks out, the file is copied to the user’s container using `docker cp`. + **Cleanup**: The temporary file is removed from the server after the upload is complete. #### Example Output: