<?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 image using apiv2 in iOS idk using objective c in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-image-using-apiv2-in-iOS-idk-using-objective-c/m-p/218035#M11418</link>
    <description>This error message is expected in this case, as the file path you supply can't end with a "/", as yours does (@"/Test1/"). When uploading, you should supply the full path, including file name. You probably meant to supply something like @"/Test1/water.jpg" instead.</description>
    <pubDate>Wed, 26 Apr 2017 18:29:42 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-04-26T18:29:42Z</dc:date>
    <item>
      <title>upload image using apiv2 in iOS idk using objective c</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-image-using-apiv2-in-iOS-idk-using-objective-c/m-p/217922#M11407</link>
      <description>&lt;P&gt;How i can upload image usign objective c. I am using APIV2.&lt;/P&gt;
&lt;P&gt;And i implemted it which display me an error. &amp;nbsp;Test 1 root folder here. I want to image uplaod in this folder&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;NSData *fileData = [@"water.jpg" dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:NO];
&amp;nbsp;&amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp; [[[client.filesRoutes uploadData:@"/Test1/" inputData:fileData]
&amp;nbsp; &amp;nbsp; &amp;nbsp; setResponseBlock:^(DBFILESFileMetadata *result, DBFILESUploadError *routeError, DBRequestError *networkError) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (result)
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSLog(@"%@\n", result);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSLog(@"%@\n%@\n", routeError, networkError);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;nbsp; &amp;nbsp; }] setProgressBlock:^(int64_t bytesUploaded, int64_t totalBytesUploaded, int64_t totalBytesExpectedToUploaded) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSLog(@"\n%lld\n%lld\n%lld\n", bytesUploaded, totalBytesUploaded, totalBytesExpectedToUploaded);
&amp;nbsp; &amp;nbsp; &amp;nbsp; }];&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR----&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DropboxBadInputError[{
&amp;nbsp; &amp;nbsp; ErrorContent = "Error in call to API function \"files/upload\": path: invalid path: paths must not have a trailing \"/\"";
&amp;nbsp; &amp;nbsp; RequestId = 9576332b860df94c12bcc13a28a6877a;
&amp;nbsp; &amp;nbsp; StatusCode = 400;
&amp;nbsp; &amp;nbsp; UserMessage = nil;
}];&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:23:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-image-using-apiv2-in-iOS-idk-using-objective-c/m-p/217922#M11407</guid>
      <dc:creator>bliss</dc:creator>
      <dc:date>2019-05-29T09:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: upload image using apiv2 in iOS idk using objective c</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-image-using-apiv2-in-iOS-idk-using-objective-c/m-p/218035#M11418</link>
      <description>This error message is expected in this case, as the file path you supply can't end with a "/", as yours does (@"/Test1/"). When uploading, you should supply the full path, including file name. You probably meant to supply something like @"/Test1/water.jpg" instead.</description>
      <pubDate>Wed, 26 Apr 2017 18:29:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-image-using-apiv2-in-iOS-idk-using-objective-c/m-p/218035#M11418</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-04-26T18:29:42Z</dc:date>
    </item>
  </channel>
</rss>

