<?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: DropboxSDK: error making request to /1/files/sandbox/- (516) (Dropbox V2)  in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxSDK-error-making-request-to-1-files-sandbox-516-Dropbox/m-p/171861#M6518</link>
    <description>&lt;P&gt;The destination path you supply to the loadFile method tells the SDK where to save the file locally. If there's something already at that path, it will fail, so you should supply a path where there isn't already something saved. Including the file name at the end helps avoid conflicts, e.g., in the case of the error you posted, where you're trying to overwrite "Documents".&lt;/P&gt;</description>
    <pubDate>Fri, 01 Apr 2016 06:27:35 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-04-01T06:27:35Z</dc:date>
    <item>
      <title>DropboxSDK: error making request to /1/files/sandbox/- (516) (Dropbox V2)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxSDK-error-making-request-to-1-files-sandbox-516-Dropbox/m-p/171856#M6513</link>
      <description>&lt;P&gt;I have a weird error, its weird because my app works perfectly on a simulator but not on the actual iPad. I am speculating here that the issue is with Dropbox requests but please correct me if i am wrong. I am trying to download a file from my folder, so after my log in, i am presented with files in that folder that should be able to download with double tap. Now I get this error :&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;[WARNING] DropboxSDK: error making request to /1/files/sandbox/enumrec.pdf - (516) Error Domain=NSCocoaErrorDomain Code=516 "The file couldn’t be saved because a file with the same name already exists." UserInfo={path=/enumrec.pdf, destinationPath=/var/mobile/Containers/Data/Application/29A8C8C7-63F4-4EA0-82AB-846DE72C9859/Documents}&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Although this is a brand new file that has never been downloaded!&amp;nbsp;&lt;BR /&gt;Any idea how to resolve this issue?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:34:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxSDK-error-making-request-to-1-files-sandbox-516-Dropbox/m-p/171856#M6513</guid>
      <dc:creator>Mariam N.1</dc:creator>
      <dc:date>2019-05-29T09:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: DropboxSDK: error making request to /1/files/sandbox/- (516) (Dropbox V2)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxSDK-error-making-request-to-1-files-sandbox-516-Dropbox/m-p/171857#M6514</link>
      <description>&lt;P&gt;[Cross-linking for reference: &lt;A href="https://stackoverflow.com/questions/36344171/nscocoaerrordomain-code-516-the-file-couldn-t-be-saved-because-a-file-with-the" rel="nofollow noreferrer"&gt;https://stackoverflow.com/questions/36344171/nscocoaerrordomain-code-516-the-file-couldn-t-be-saved-because-a-file-with-the&lt;/A&gt; and &lt;A href="https://github.com/dropbox/SwiftyDropbox/issues/69" rel="nofollow noreferrer"&gt;https://github.com/dropbox/SwiftyDropbox/issues/69&lt;/A&gt; ]&lt;/P&gt;
&lt;P&gt;Hi Mariam, Chris's comments on the GitHub issue are right. You seem to be supplying only the path to a local folder as the destination to save the file to. You need to supply a full path though, including the local file name you want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 04:41:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxSDK-error-making-request-to-1-files-sandbox-516-Dropbox/m-p/171857#M6514</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-04-01T04:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: DropboxSDK: error making request to /1/files/sandbox/- (516) (Dropbox V2)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxSDK-error-making-request-to-1-files-sandbox-516-Dropbox/m-p/171858#M6515</link>
      <description>&lt;P&gt;Thank you for getting back to me Greg, can you please provide an example of what you mean by "full path though, including the local file name you want.&amp;nbsp;" because I thought what i was doing before was providing a full path, and I dont know any other methods to do this frankly. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 04:46:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxSDK-error-making-request-to-1-files-sandbox-516-Dropbox/m-p/171858#M6515</guid>
      <dc:creator>Mariam N.1</dc:creator>
      <dc:date>2016-04-01T04:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: DropboxSDK: error making request to /1/files/sandbox/- (516) (Dropbox V2)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxSDK-error-making-request-to-1-files-sandbox-516-Dropbox/m-p/171859#M6516</link>
      <description>&lt;P&gt;To borrow Chris's example, instead of:&lt;/P&gt;
&lt;P&gt;/var/mobile/Containers/Data/Application/29A8C8C7-63F4-4EA0-82AB-846DE72C9859/Documents&lt;/P&gt;
&lt;P&gt;you would need:&lt;/P&gt;
&lt;P&gt;/var/mobile/Containers/Data/Application/29A8C8C7-63F4-4EA0-82AB-846DE72C9859/Documents/enumrec.pdf&lt;/P&gt;
&lt;P&gt;That is, the second one includes the "enumrec.pdf" filename at the end. To get that, you can do something like&amp;nbsp;documentsDirectoryPath.stringByAppendingString(filename)&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 04:59:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxSDK-error-making-request-to-1-files-sandbox-516-Dropbox/m-p/171859#M6516</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-04-01T04:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: DropboxSDK: error making request to /1/files/sandbox/- (516) (Dropbox V2)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxSDK-error-making-request-to-1-files-sandbox-516-Dropbox/m-p/171860#M6517</link>
      <description>&lt;P&gt;but why does this needs to include the file name at the end though? I am just not understanding how this would solve the issue of paths allocation&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 05:56:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxSDK-error-making-request-to-1-files-sandbox-516-Dropbox/m-p/171860#M6517</guid>
      <dc:creator>Mariam N.1</dc:creator>
      <dc:date>2016-04-01T05:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: DropboxSDK: error making request to /1/files/sandbox/- (516) (Dropbox V2)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxSDK-error-making-request-to-1-files-sandbox-516-Dropbox/m-p/171861#M6518</link>
      <description>&lt;P&gt;The destination path you supply to the loadFile method tells the SDK where to save the file locally. If there's something already at that path, it will fail, so you should supply a path where there isn't already something saved. Including the file name at the end helps avoid conflicts, e.g., in the case of the error you posted, where you're trying to overwrite "Documents".&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 06:27:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxSDK-error-making-request-to-1-files-sandbox-516-Dropbox/m-p/171861#M6518</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-04-01T06:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: DropboxSDK: error making request to /1/files/sandbox/- (516) (Dropbox V2)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxSDK-error-making-request-to-1-files-sandbox-516-Dropbox/m-p/171862#M6519</link>
      <description>&lt;P&gt;But there wasn't a file with that name before, I uploaded it specifically to check if it would pass but it failed the first time round-where was there a conflict?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 06:32:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxSDK-error-making-request-to-1-files-sandbox-516-Dropbox/m-p/171862#M6519</guid>
      <dc:creator>Mariam N.1</dc:creator>
      <dc:date>2016-04-01T06:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: DropboxSDK: error making request to /1/files/sandbox/- (516) (Dropbox V2)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxSDK-error-making-request-to-1-files-sandbox-516-Dropbox/m-p/171863#M6520</link>
      <description>&lt;P&gt;I'm not sure I follow. This question was originally about downloading files, not uploading, correct?&lt;/P&gt;
&lt;P&gt;Can you share some sample code that isn't working as expected?&lt;/P&gt;
&lt;P&gt;If you're asking why&amp;nbsp;/var/mobile/Containers/Data/Application/29A8C8C7-63F4-4EA0-82AB-846DE72C9859/Documents already existed, that seems reasonable, since that's the Documents folder created for you app, unrelated to the&amp;nbsp;Dropbox SDK/file download.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 06:41:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/DropboxSDK-error-making-request-to-1-files-sandbox-516-Dropbox/m-p/171863#M6520</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-04-01T06:41:09Z</dc:date>
    </item>
  </channel>
</rss>

