A
Hello! I am trying to include an env. variable, but the execution fails. Do you have any idea what is wrong?
TypeScript
async def process_file(file):
try:
allowed_extensions = os.getenv("ALLOWED_EXTENSIONS", "").split(",")
if not allowed_extensions:
raise ValueError("ALLOWED_EXTENSIONS not set")
if file["type"] == "file" and file["name"].lower().endswith(
(tuple(allowed_extensions))
):
TL;DR
Developers are trying to include an environment variable in their code, however, the execution fails. The problem might be the environment variable not being set. Make sure to set it properly. Recommended threads
- My deployment status is active and it sh...
{ "motto": "Build like a team of hundreds_", "learn": "https://appwrite.io/docs", "connect": "https://appwrite.io/discord", "getInspired": "https://builtwith.ap...
- Payload Does Not Include Attributes Link...
Hello, I'm using Appwrite's real-time subscriptions to listen for updates in the matches collection. However, when a match document is updated, the payload doe...
- How to whitelist specific emails for reg...
using appwrite `1.6.0`, want to configure `_APP_CONSOLE_WHITELIST_EMAILS`. Do i add a comma separated list values? dont want to disable `_APP_CONSOLE_WHITELIST_...