<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: User Space Over Quota Exception in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/User-Space-Over-Quota-Exception/m-p/195202#M8883</link>
    <description>&lt;P&gt;Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the solution. Is there any ways to achieve the same in API v1 for time being?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2016 05:34:35 GMT</pubDate>
    <dc:creator>Naga Abhinaya T</dc:creator>
    <dc:date>2016-11-22T05:34:35Z</dc:date>
    <item>
      <title>User Space Over Quota Exception</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/User-Space-Over-Quota-Exception/m-p/195069#M8857</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am developing an app with Dropbox APIs. I am using dropbox-core-sdk-1.8.2.jar currently. What exception is thrown if the user space quota gets over? How can I keep track of the user quota?&lt;/P&gt;&lt;P&gt;On getting the user's accountInfo, I get details such as quota.total, quota.shared and quota.normal. What do they signify? can I get to know the available space in Dropbox for that user using these details?&lt;/P&gt;&lt;P&gt;Please help. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:28:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/User-Space-Over-Quota-Exception/m-p/195069#M8857</guid>
      <dc:creator>Naga Abhinaya T</dc:creator>
      <dc:date>2019-05-29T09:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: User Space Over Quota Exception</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/User-Space-Over-Quota-Exception/m-p/195138#M8871</link>
      <description>&lt;P&gt;The Java SDK v1.8.2 is for API v1, which is deprecated:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/" target="_blank"&gt;https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should instead use the latest version, which uses API v2:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/java" target="_blank"&gt;https://www.dropbox.com/developers/documentation/java&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When using that,&amp;nbsp;if you try to upload to an account that's currently over quota, you'll get an &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/com/dropbox/core/v2/files/UploadErrorException.html" target="_self"&gt;UploadErrorException&lt;/A&gt;&amp;nbsp;indicating the issue. Specifically, it will have an &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/com/dropbox/core/v2/files/UploadError.html#path-com.dropbox.core.v2.files.UploadWriteFailed-" target="_self"&gt;UploadError.path&lt;/A&gt;&amp;nbsp;with a &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/com/dropbox/core/v2/files/WriteError.html#isInsufficientSpace--" target="_self"&gt;WriteError.isInsufficientSpace&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In code, that means you can do something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;        } catch (UploadErrorException ex) {
            System.err.println("Error uploading to Dropbox: " + ex.getMessage());
            if (ex.errorValue.isPath()) {
                if (ex.errorValue.getPathValue().getReason().isInsufficientSpace()) {
                    System.err.println("Couldn't upload because the account has insufficient space.");
                }
            }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To check the available space, you can use &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/com/dropbox/core/v2/users/DbxUserUsersRequests.html#getSpaceUsage--" target="_self"&gt;getSpaceUsage&lt;/A&gt;. The returned values are documented in &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/com/dropbox/core/v2/users/SpaceUsage.html" target="_self"&gt;SpaceUsage&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 19:49:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/User-Space-Over-Quota-Exception/m-p/195138#M8871</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-11-21T19:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: User Space Over Quota Exception</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/User-Space-Over-Quota-Exception/m-p/195202#M8883</link>
      <description>&lt;P&gt;Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the solution. Is there any ways to achieve the same in API v1 for time being?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 05:34:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/User-Space-Over-Quota-Exception/m-p/195202#M8883</guid>
      <dc:creator>Naga Abhinaya T</dc:creator>
      <dc:date>2016-11-22T05:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: User Space Over Quota Exception</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/User-Space-Over-Quota-Exception/m-p/195290#M8892</link>
      <description>&lt;P&gt;Yes, this works similarly in the Java SDK for API v1. The &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v1.8.x/com/dropbox/core/DbxClient.html#uploadFile(java.lang.String,%20com.dropbox.core.DbxWriteMode,%20long,%20com.dropbox.core.DbxStreamWriter)" target="_self"&gt;uploadFile call&lt;/A&gt;, for example, would throw &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v1.8.x/com/dropbox/core/DbxException.BadResponseCode.html" target="_self"&gt;DbxException.BadResponseCode&lt;/A&gt;&amp;nbsp;with statusCode=507.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v1.8.x/com/dropbox/core/DbxClient.html#getAccountInfo()" target="_self"&gt;getAccountInfo&lt;/A&gt;&amp;nbsp;to get &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v1.8.x/com/dropbox/core/DbxAccountInfo.html" target="_self"&gt;DbxAccountInfo&lt;/A&gt;&amp;nbsp;which contains the quota information in &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v1.8.x/com/dropbox/core/DbxAccountInfo.Quota.html" target="_self"&gt;DbxAccountInfo.Quota&lt;/A&gt;. There are more detailed descriptions of those individual quota fields &lt;A href="https://www.dropbox.com/developers-v1/core/docs#account-info" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 17:57:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/User-Space-Over-Quota-Exception/m-p/195290#M8892</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-11-22T17:57:51Z</dc:date>
    </item>
  </channel>
</rss>

