Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7650459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:15:27+00:00 2026-05-31T11:15:27+00:00

Trying to create a file using the sandboxed FileSystem API: window.requestFileSystem = window.requestFileSystem ||

  • 0

Trying to create a file using the sandboxed FileSystem API:

window.requestFileSystem  = window.requestFileSystem || window.webkitRequestFileSystem;     
window.requestFileSystem(
    window.PERSISTENT, 
    1024 * 1024, 
    function( fs ) {       
        fs.root.getFile( 'test.txt', {create: true}, function( fe )
        {
            alert( "OK" );
        }, function( e )
        {
            alert( e.code );
        }
        );
    }, null
);

I always get the error code 10 (QUOTA_EXCEEDED_ERR) on this code.

Chrome: 17.0.963.79 m, started with --allow-file-access-from-files flag.

What am I doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T11:15:28+00:00Added an answer on May 31, 2026 at 11:15 am

    For persistent storage, you have to explicitly ask for permission of the user:

    webkitStorageInfo.requestQuota( 
      webkitStorageInfo.PERSISTENT,
    
      1000, // amount of bytes you need
    
      function(availableBytes) {
        alert("Quota is available. Quota size: " + availableBytes);
        // you can use the filesystem now
      }
    );
    

    You can also choose for temporary storage.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a file using File newFile = new File(myFile); However
I am trying to create a text file using VB.Net with UTF8 encoding, without
I am trying to create an exe file using NSIS script, in my script
I'm trying to create an app which plays videos from a file using AVFoundation
i am trying to use GZipStream to create a gz file using c#. my
I am trying to create a mapping file for the following Model using Fluent
I'm trying to create an conditional Rewrite Rule using an .htaccess file and Apache.
I am trying to create a debugfs file using the debugfs_create_file(...). I have written
js.I am trying to create a file upload using node.js and mongodb.I am getting
I am trying to create an output .wmv file using WM Asf writer filter.Here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.