<?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: How can I upload PDF by SwiftyDropbox? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-upload-PDF-by-SwiftyDropbox/m-p/77120#M2320</link>
    <description>&lt;P&gt;I understand.&amp;nbsp;Thank you for your help.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jul 2015 12:42:52 GMT</pubDate>
    <dc:creator>m. name</dc:creator>
    <dc:date>2015-07-21T12:42:52Z</dc:date>
    <item>
      <title>How can I upload PDF by SwiftyDropbox?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-upload-PDF-by-SwiftyDropbox/m-p/77114#M2314</link>
      <description>&lt;P&gt;I am new to &lt;A href="https://www.dropbox.com/developers-preview/documentation/swift#tutorial" rel="nofollow noreferrer" target="_blank"&gt;SwiftyDropbox&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;I attempted to upload PDF from iOS App.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;func uploadPDF(filename: String, fullPath: String){  
    if let data = NSData(contentsOfFile: fullPath){  
    client.filesUpload(path: filename, body: data).response{ response, error in  
    if let metadata = response {  
    println("Uploaded file name: \(metadata.name)")  
    println("Uploaded file revision: \(metadata.rev)")  
    // Get file (or folder) metadata  
    self.client.filesGetMetadata(path: filename).response { response, error in  
    if let metadata = response {  
    println("Name: \(metadata.name)")  
    if let file = metadata as? Files.FileMetadata {  
    println("This is a file.")  
    println("File size: \(file.size)")  
    } else if let folder = metadata as? Files.FolderMetadata {  
    println("This is a folder.")  
    }  
    } else {  
    println(error!)  
    }  
    }  
    } else {  
    println(error!)  
    }  
    }  
    }   
}


&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, response is error.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Bad Input: Error in call to API function "files/upload": HTTP header "Dropbox-API-Arg": could not decode input as JSON


&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What can I do?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:41:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-upload-PDF-by-SwiftyDropbox/m-p/77114#M2314</guid>
      <dc:creator>m. name</dc:creator>
      <dc:date>2019-05-29T09:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I upload PDF by SwiftyDropbox?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-upload-PDF-by-SwiftyDropbox/m-p/77115#M2315</link>
      <description>&lt;P&gt;Could you share the filename you're using?&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2015 02:46:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-upload-PDF-by-SwiftyDropbox/m-p/77115#M2315</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-07-18T02:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I upload PDF by SwiftyDropbox?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-upload-PDF-by-SwiftyDropbox/m-p/77116#M2316</link>
      <description>&lt;P&gt;Hi, Steve&lt;/P&gt;

&lt;P&gt;filename is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/FILENAME.pdf
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 19 Jul 2015 21:43:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-upload-PDF-by-SwiftyDropbox/m-p/77116#M2316</guid>
      <dc:creator>m. name</dc:creator>
      <dc:date>2015-07-19T21:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I upload PDF by SwiftyDropbox?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-upload-PDF-by-SwiftyDropbox/m-p/77117#M2317</link>
      <description>&lt;P&gt;Is that the actual file name, or have you redacted the part before the extension for privacy reasons? We've been able to reproduce this issue when there are unicode characters in the filename, but we'd like to verify if that is or isn't the same case you're seeing.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 01:21:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-upload-PDF-by-SwiftyDropbox/m-p/77117#M2317</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-07-21T01:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I upload PDF by SwiftyDropbox?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-upload-PDF-by-SwiftyDropbox/m-p/77118#M2318</link>
      <description>&lt;P&gt;Thank you for the reply.&lt;/P&gt;

&lt;P&gt;Certainly, the filename contains unicode characters.&lt;/P&gt;

&lt;P&gt;I was able to upload the file with filename not containing unicode characters.&amp;nbsp;However, preview in dropbox doesn't work showing unicode characters.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 10:55:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-upload-PDF-by-SwiftyDropbox/m-p/77118#M2318</guid>
      <dc:creator>m. name</dc:creator>
      <dc:date>2015-07-21T10:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I upload PDF by SwiftyDropbox?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-upload-PDF-by-SwiftyDropbox/m-p/77119#M2319</link>
      <description>&lt;P&gt;Thanks for confirming that! We're working on it.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 11:56:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-upload-PDF-by-SwiftyDropbox/m-p/77119#M2319</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-07-21T11:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I upload PDF by SwiftyDropbox?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-upload-PDF-by-SwiftyDropbox/m-p/77120#M2320</link>
      <description>&lt;P&gt;I understand.&amp;nbsp;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 12:42:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-upload-PDF-by-SwiftyDropbox/m-p/77120#M2320</guid>
      <dc:creator>m. name</dc:creator>
      <dc:date>2015-07-21T12:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I upload PDF by SwiftyDropbox?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-upload-PDF-by-SwiftyDropbox/m-p/77121#M2321</link>
      <description>&lt;P&gt;For reference, this was fixed here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/dropbox/SwiftyDropbox/commit/8fc2eed6f05af8a27a37cf76c244a0b56b065d85" rel="nofollow noreferrer"&gt;https://github.com/dropbox/SwiftyDropbox/commit/8fc2eed6f05af8a27a37cf76c244a0b56b065d85&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;That change should be included with the next release.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2015 01:38:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-upload-PDF-by-SwiftyDropbox/m-p/77121#M2321</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-07-30T01:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I upload PDF by SwiftyDropbox?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-upload-PDF-by-SwiftyDropbox/m-p/77122#M2322</link>
      <description>&lt;P&gt;Thanks for your great work!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2015 07:51:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-upload-PDF-by-SwiftyDropbox/m-p/77122#M2322</guid>
      <dc:creator>m. name</dc:creator>
      <dc:date>2015-07-30T07:51:03Z</dc:date>
    </item>
  </channel>
</rss>

