Back

Cannot set custom file size limit in bucket

  • 0
  • Web
  • Storage
  • Cloud
Kushl121
24 Feb, 2024, 15:29

The console only supports value upto 50. I want to set it as 1024 Kilobytes (1MB here is 1000KB), but it says: "The value must be less than or equal to 50". Setting 1024000 as Bytes gives the same error. Setting 1.024 as Megabytes says: "Please enter a valid value. The two nearest valid values are 1 and 2." Same error for Gigabytes as well.

TL;DR
Developers want to set a custom file size limit in a bucket to 1MB, but the console only supports a value up to 50. Various attempts to set the limit in different units result in errors. Solution: Try converting 1MB to bytes directly as 1048576.
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