This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

requestQuota

Summary

Requests a new quota for the requesting application.

Method of apis/quota management/StorageQuotaapis/quota management/StorageQuota

Syntax

 object.requestQuota(/* see parameter list */);

Parameters

newQuotaInBytes

Data-type
unsigned long

The requested new quota, expressed in bytes.

successCallback

Data-type
String

(Optional)

This callback is used to return new quota information granted by a User Agent. Quota is provided by the grantedQuotaInBytes parameter.

void (unsigned long grantedQuotaInBytes)

errorCallback

Data-type
String

(Optional)

This callback is used to return information when an error has occured. Details are provided by the error parameter.

void (DOMError error)

Return Value

No return value

Notes

It is not guaranteed that the requested amount of space is granted just by calling this API. Calling this API may trigger user prompting to request explicit user permission to proceed. The successCallback callback may return a smaller amount of quota than requested.

Related specifications

W3C Quota Management API
W3C Working Draft

See also

Related articles

Off-line Storage