<?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: Upload failing on iOS9.3 (Expecting a file upload) in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170026#M6343</link>
    <description>&lt;P&gt;I've updated my app to use the files_put method just gotta wait for Apple approval now &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@B0F70D28791EB05FA3EA0C3BDDF08EE3/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&lt;/P&gt;
&lt;P&gt;Thanks for the info regarding converting OAuth1 to 2 tokens - didn't know that!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2016 18:05:43 GMT</pubDate>
    <dc:creator>Craig S.28</dc:creator>
    <dc:date>2016-03-29T18:05:43Z</dc:date>
    <item>
      <title>Upload failing on iOS9.3 (Expecting a file upload)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170018#M6335</link>
      <description>&lt;P&gt;Just started getting customer reports that uploads from my app are failing.&lt;/P&gt;
&lt;P&gt;Tried it myself and it works ok on iOS9.2 but not on iOS9.3 ?&lt;/P&gt;
&lt;P&gt;The error I'm getting from Dropbox is 400 and JSON containing the following:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"Expecting a file upload"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I receive this AFTER&amp;nbsp;apparently uploading the whole file (I see all the callback indications after&amp;nbsp;each lump of data has been sent.)&lt;/P&gt;
&lt;P&gt;Not sure if this is related to iOS9.3 or something at the Dropbox end (my app has not changed in years....)&lt;/P&gt;
&lt;P&gt;Anyone else seeing the same.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;PS: Using the core api v2 and NSURLConnection&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:34:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170018#M6335</guid>
      <dc:creator>Craig S.28</dc:creator>
      <dc:date>2019-05-29T09:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Upload failing on iOS9.3 (Expecting a file upload)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170019#M6336</link>
      <description>&lt;P&gt;Can you share some sample code to reproduce the issue?&amp;nbsp;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2016 02:49:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170019#M6336</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-03-27T02:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Upload failing on iOS9.3 (Expecting a file upload)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170020#M6337</link>
      <description>&lt;P&gt;Experiencing the same error since this morning (8 AM&amp;nbsp;UTC+01:00 to be exact), nothing changed on our part. We also receive an "Expecting a file upload" on every upload. We are using the API on a Linux PHP system so it probably has nothing to do with iOS.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2016 03:42:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170020#M6337</guid>
      <dc:creator>Freddie L.2</dc:creator>
      <dc:date>2016-03-27T03:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Upload failing on iOS9.3 (Expecting a file upload)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170021#M6338</link>
      <description>&lt;P&gt;Thanks for the additional report Freddie. Can you share the relevant code? That would help us reproduce the track down the issue.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2016 05:28:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170021#M6338</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-03-27T05:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Upload failing on iOS9.3 (Expecting a file upload)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170022#M6339</link>
      <description>&lt;P&gt;Here is the object, hope this helps.&lt;/P&gt;
&lt;P&gt;Dropbox_OAuth_PHP Object&lt;BR /&gt;(&lt;BR /&gt; [oAuth:protected] =&amp;gt; &lt;BR /&gt; [authorizeCallbackUrl] =&amp;gt; &lt;BR /&gt; [oauth_token:protected] =&amp;gt; *****&lt;BR /&gt; [oauth_token_secret:protected] =&amp;gt; *****&lt;BR /&gt; [lastResponse:protected] =&amp;gt; Array&lt;BR /&gt; (&lt;BR /&gt; )&lt;/P&gt;
&lt;P&gt;[inFile:protected] =&amp;gt; &lt;BR /&gt; [inFileSize:protected] =&amp;gt; &lt;BR /&gt; [putSupported:protected] =&amp;gt; &lt;BR /&gt; [OAuth] =&amp;gt; OAuth Object&lt;BR /&gt; (&lt;BR /&gt; [debug] =&amp;gt; 1&lt;BR /&gt; [sslChecks] =&amp;gt; 0&lt;BR /&gt; [debugInfo] =&amp;gt; Array&lt;BR /&gt; (&lt;BR /&gt; [sbs] =&amp;gt; POST&amp;amp;https%3A%2F%2Fapi-content.dropbox.com%2F1%2Ffiles%2Fsandbox%2Fleku%2F%2F&amp;amp;file%3Dtest.txt%26oauth_consumer_key%3D********%26oauth_nonce%3D********%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1459072553%26oauth_token%3D*****%26oauth_version%3D1.0&lt;BR /&gt; [headers_sent] =&amp;gt; Content-Type: multipart/form-data; boundary=R50hrfBj5JYyfR3vF3wR96GPCC9Fd2q2pVMERvEaOE3D8LZTgLLbRpNwXek3&lt;BR /&gt; [headers_recv] =&amp;gt; HTTP/1.1 400 Bad Request&lt;BR /&gt;Server: nginx&lt;BR /&gt;Date: Sun, 27 Mar 2016 09:55:54 GMT&lt;BR /&gt;Content-Type: application/json&lt;BR /&gt;Connection: close&lt;BR /&gt;X-Dropbox-Request-Id: 059d14f9ba8fbae16e903f2eaa271fe6&lt;BR /&gt;X-Robots-Tag: noindex, nofollow, noimageindex&lt;BR /&gt; [body_sent] =&amp;gt; --R50hrfBj5JYyfR3vF3wR96GPCC9Fd2q2pVMERvEaOE3D8LZTgLLbRpNwXek3&lt;BR /&gt;Content-Disposition: form-data; name=file; filename=test.txt&lt;BR /&gt;Content-type: application/octet-stream&lt;/P&gt;
&lt;P&gt;roelandtest&lt;BR /&gt;--R50hrfBj5JYyfR3vF3wR96GPCC9Fd2q2pVMERvEaOE3D8LZTgLLbRpNwXek3--&lt;BR /&gt; [body_recv] =&amp;gt; {"error": {"file": "Expecting a file upload"}}&lt;BR /&gt; )&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2016 17:04:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170022#M6339</guid>
      <dc:creator>Freddie L.2</dc:creator>
      <dc:date>2016-03-27T17:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Upload failing on iOS9.3 (Expecting a file upload)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170023#M6340</link>
      <description>&lt;P&gt;I found the issue - and it looks the same as reported by Freddie also.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For some installs I am using OAuth1 and the&amp;nbsp;&lt;STRONG&gt;POST /1/files/dropbox/&lt;/STRONG&gt; method to upload. This doesn't seem to work anymore.&lt;/P&gt;
&lt;P&gt;For other installs I am using the (recommended) OAuth2 and&amp;nbsp;&lt;STRONG&gt;PUT /1/files_put/dropbox&lt;/STRONG&gt; method to upload. This works ok.&lt;/P&gt;
&lt;P&gt;The reason I do things differently for different installs is that I use the (unsupported?) dbapi-2:// URL method to launch the Dropbox app (if installed) in order to get it to authorise the user. It then returns me the OAuth1 fields. I guess I could use OAuth1 and the files_put method, but I could get that to work and it always worked the old way.&lt;/P&gt;
&lt;P&gt;So my conclusion is that Dropbox have stopped supporting OAuth1 and the &lt;STRONG&gt;POST /1/files/dropbox &lt;/STRONG&gt;method recently? Or perhaps they stopped supporting it a while ago and it's only now that it's actually stopped working? Nothing to do with iOS9.3 or even iOS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2016 18:42:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170023#M6340</guid>
      <dc:creator>Craig S.28</dc:creator>
      <dc:date>2016-03-27T18:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Upload failing on iOS9.3 (Expecting a file upload)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170024#M6341</link>
      <description>&lt;P&gt;We've resolved the issue by using cURL instead of PHP to communicate and this works as well. We are still using OAuth1 though. It appears Dropbox changed something that causes this to happen since both Craig and I didn't change anything and it suddenly stopped working. It's weird though that there are not that many complaints/solutions for this problem on the internet (so far).&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2016 21:20:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170024#M6341</guid>
      <dc:creator>Freddie L.2</dc:creator>
      <dc:date>2016-03-27T21:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Upload failing on iOS9.3 (Expecting a file upload)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170025#M6342</link>
      <description>&lt;P&gt;Thanks for the additional information, it's very helpful.&lt;/P&gt;
&lt;P&gt;The /1/files (POST) endpoint is an old upload method on the Core API, a.k.a. API v1. That endpoint is technically supported, and it looks like its behavior did change, which we're looking in to. However, we do strongly&amp;nbsp;recommend using &lt;A href="https://www.dropbox.com/developers-v1/core/docs#files_put" target="_blank" rel="nofollow noreferrer"&gt;/1/files_put&lt;/A&gt; instead, as it's generally easier to implement and debug. Most apps use this endpoint&amp;nbsp;instead.&lt;/P&gt;
&lt;P&gt;Further, API v1, including both of these upload endpoints, supports both OAuth 1 and OAuth 2, with OAuth 2 being preferred.&lt;/P&gt;
&lt;P&gt;The dbapi-2:// URL scheme on iOS isn't directly related to this. That's an undocumented URL scheme used by the official iOS Core SDK to handle the OAuth app authorization on iOS. We generally don't&amp;nbsp;recommend using that manually, as it's not documented. If you do use it though, it will return a normal OAuth 1 access token to your app. You can&amp;nbsp;also get OAuth 2 tokens from OAuth 1 tokens using&amp;nbsp;&lt;A href="https://www.dropbox.com/developers-v1/core/docs#oa2-from-oa1" target="_blank" rel="nofollow noreferrer"&gt;/oauth2/token_from_oauth1&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2016 23:40:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170025#M6342</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-03-27T23:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Upload failing on iOS9.3 (Expecting a file upload)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170026#M6343</link>
      <description>&lt;P&gt;I've updated my app to use the files_put method just gotta wait for Apple approval now &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@B0F70D28791EB05FA3EA0C3BDDF08EE3/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&lt;/P&gt;
&lt;P&gt;Thanks for the info regarding converting OAuth1 to 2 tokens - didn't know that!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 18:05:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170026#M6343</guid>
      <dc:creator>Craig S.28</dc:creator>
      <dc:date>2016-03-29T18:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Upload failing on iOS9.3 (Expecting a file upload)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170027#M6344</link>
      <description>&lt;P&gt;The /files (POST) endpoint should be working again now. Please let me know if you're still seeing any issues.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 04:37:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170027#M6344</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-03-30T04:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Upload failing on iOS9.3 (Expecting a file upload)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170028#M6345</link>
      <description>&lt;P&gt;We will be using cURL for now on and will not be testing the previous way. Fixing this was a pain and messed up our Easter holiday.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 13:09:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-failing-on-iOS9-3-Expecting-a-file-upload/m-p/170028#M6345</guid>
      <dc:creator>Freddie L.2</dc:creator>
      <dc:date>2016-03-30T13:09:15Z</dc:date>
    </item>
  </channel>
</rss>

