Prefer app upgrade prompt on storage errors

This commit is contained in:
jelveh
2026-05-01 21:07:49 -07:00
parent 63be2308d3
commit 9f2ec29586
@@ -365,10 +365,10 @@ const upload = async function (items, dirPath, options = {}) {
e?.status === 413 ||
e?.code === 'storage_limit_reached';
if ( isStorageError ) {
if ( puter.env === 'web' ) {
showUsageLimitDialog('Not enough storage space available.<br>Please upgrade to continue.');
} else if ( puter.env === 'app' ) {
if ( puter.env === 'app' ) {
puter.ui.requestUpgrade();
} else {
showUsageLimitDialog('Not enough storage space available.<br>Please upgrade to continue.');
}
}