curiousmarkingsco / appSage

appSage is a no-code, front-end-only web page builder using TailwindCSS.
http://appsage.io/
Other
0 stars 1 forks source link

File uploads need a size limit of 10mb #83

Open ianrandmckenzie opened 1 week ago

ianrandmckenzie commented 1 week ago

Otherwise, we get an error:

Steps to reproduce:

  1. Create an image element
  2. Upload a file (most likely 10mb+, file yielding this error was 11.5mb on Brave + Linux (penguin) on ChromeOS, latest available versions for all – it's a pretty gnarly setup, I know, but I think this'll be an issue anyway)

Brings up this result in the console:

Uncaught (in promise) QuotaExceededError: Failed to execute `setItem` on 'Storage': Setting the value of 'appSageStorage' exceeded the quota.

@sam131102 based on the error message I am seeing here, this potentially also means localStorage has a built-in 10mb size limit. For monetization reasons, maybe this is a "feature" and not a bug where we can offer more expansive storage alternatives as part of the business model. Perhaps we discuss later, I don't want to shoot ourselves in the foot and not have any way to keep our bills paid.

sam131102 commented 1 week ago

I agree It could be a potential feature for monetisation in the future