mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-03 08:00:32 +00:00
Prefer app upgrade prompt on storage errors
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user