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
- getFileViewURL isnt working on android
i trid the adding the jwt token to the end of the url still nothing. but it works fine on ios https://fra.cloud.appwrite.io/v1/storage/buckets/693a0xxxxxxxxf2d...
- Function permissions
In my app I have a CreateUser flow which makes several documents and at the end uses the functions.createExecution() to call a server-side function to create a ...
- Which flutter SDK version for Self Hoste...
Hi all, Is there a good way to figure out which version of flutter SDK and Dart SDK is current for latest available self-hosted 1.8.0 ? I know new features are...