Back

[SOLVED] Uploading `.env` file in functions settings results in invalid extension error

  • 0
  • Functions
  • Web
  • Cloud
sswastik02
23 Dec, 2023, 01:40

Created a function that will use some environment variables, then tried to use the import .env file feature from settings. I am receiving the following error as displayed in the image. Can anyone please help ?

TL;DR
The user was getting an "invalid extension" error when trying to upload an `.env` file in the functions settings. It was later resolved as the extension validation was removed to allow any extension. There is also a known bug with the file chooser's regex that will be fixed in the next release.
sswastik02
25 Dec, 2023, 08:11

Can someone help here please ?

sswastik02
25 Dec, 2023, 08:12

It could be possible bug

Drake
25 Dec, 2023, 16:19

Yes, known bug that will be fixed in the next release

sswastik02
25 Dec, 2023, 17:46

Great, Thank you so much. Also I think the Regex is wrong for the file chooser

Drake
25 Dec, 2023, 19:49

We got rid of the extension validation because the extension can be anything like production or testing, etc.

sswastik02
26 Dec, 2023, 07:06

I see

sswastik02
26 Dec, 2023, 07:33

[SOLVED] Uploading .env file in functions settings results in invalid extension error

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more