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 9173121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:30:55+00:00 2026-06-17T16:30:55+00:00

For my application I need calculate available storage for each user. I using About

  • 0

For my application I need calculate available storage for each user.
I using About API(https://developers.google.com/drive/v2/reference/about/get) and following formula:

Free storage = (quotaBytesTotal - quotaBytesUsed)

It works well, except users without Extra storage. For such users quotaBytesUsed is more than quotaBytesTotal:

  {"kind"=>"drive#user", "displayName"=>"D B", "isAuthenticatedUser"=>true},
 "quotaBytesTotal"=>"5368709120",
 "quotaBytesUsed"=>"26843545600",
 "quotaBytesUsedAggregate"=>"26843545600",
 "quotaBytesUsedInTrash"=>"0",
 "largestChangeId"=>"363004",

Is this API bug?
How I can calculate free storage for such users?

  • 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-06-17T16:30:56+00:00Added an answer on June 17, 2026 at 4:30 pm

    I found reason of issue.
    Our user bought +20GB of extra storage. He had 25GB of quota and almost all 25GB were used.
    Last month payment subscription (for extra storage) was cancelled, and quota for this user was reduced to 5GB.

    This is why quotaBytesUsed > quotaBytesTotal

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

Sidebar

Related Questions

For my application I need a server to calculate driving directions. The Google Maps
In my application I need to know the user's Facebook uid. I get by
I need to calculate distance between two locations in my android application. Then I
I am using Jersey and I need to calculate the MD5 hash of the
In my application I need to geolocalize the mobile to calculate distance between 2
I am creating a java application. I need to calculate the determinant of three
I'm working on an application which will calculate molecular weight and I need to
I'm developing an application where I need to both calculate things (multiple seconds operations)
In my application, I need to calculate the size of the file in client
I am using Threadpool in a C# application that need to do some CPU-intensive

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.