Usually I add folders as volumes in docker-compose.yml.. since the open-runtimes functions are running in isolated containers, they are not part of the docker compose. The runtimes are just brought up when functions get executed.
How do I make folders/shares accessible for a function?
Hi there! you can use Appwrite's built-in data storage feature. Appwrite has a storage API https://appwrite.io/docs/client/storage that allows you to store, manage, and access files and data from within your functions
Upload Data to Appwrite Storage: Before executing your function, you can upload the required data or files to the Appwrite storage. You can use the Appwrite Storage API to upload files from your local machine or another remote location directly to Appwrite.
Retrieve Data in Function: Inside your function, you can use the Appwrite Storage API to fetch the uploaded data. The data will be available as a file or binary, and you can read and manipulate it as needed within your function code.
In Appwrite 1.4, we are committed to enhancing the functionality and scalability of functions. Our aim is to make functions more robust, both in terms of performance and code management.
One of the significant improvements will be the ability to host multiple endpoints as a single function where developers can potentially host the entire API with hundreds of endpoints as just one function in Appwrite 1.4.
so, this would really resolve your issue. Our release is coming up soon so I would definitely love for you to try it out soon!
Ah ok now I get it.. Nice, Im really looking forward to 1.4 thx very much mate
[Solved]Access host filesystem from within a function
[SOLVED] Access host filesystem from within a function
Recommended threads
- Having issues with login via CLI
``` ~/appwrite appwrite login --endpoint https://localhost/v1 --verbose ? Enter your email myvalidemai...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...