<?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: Uploaded files are not in the Dropbox in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploaded-files-are-not-in-the-Dropbox/m-p/220947#M11716</link>
    <description>&lt;P&gt;I found my mistake! Thank you&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 13 May 2017 04:39:44 GMT</pubDate>
    <dc:creator>sathish1995</dc:creator>
    <dc:date>2017-05-13T04:39:44Z</dc:date>
    <item>
      <title>Uploaded files are not in the Dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploaded-files-are-not-in-the-Dropbox/m-p/220788#M11702</link>
      <description>&lt;PRE&gt;@IBAction func saveFile(_ sender: Any) {

let client = DropboxClientsManager.authorizedClient

let fileData = "testing data example".data(using: String.Encoding.utf8, allowLossyConversion: false)!

    let request = client?.files.upload(path: "/test/path/in/Dropbox/account", input: fileData).response { response, error in
            if let response = response {
                print("The upload response is \(response)")
            } else if let error = error {
                print("The upload error is \(error)")
            }
        }
        .progress { progressData in
            print(progressData)
    }

  // in case you want to cancel the request
  //        if someConditionIsSatisfied {
  //            request.cancel()

        print(" View Loaded ")
    }&lt;/PRE&gt;&lt;P&gt;Here I uploaded the file using the swift Language. It gave the uploaded response but the file is not there in the dropbox.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:22:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploaded-files-are-not-in-the-Dropbox/m-p/220788#M11702</guid>
      <dc:creator>sathish1995</dc:creator>
      <dc:date>2019-05-29T09:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Uploaded files are not in the Dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploaded-files-are-not-in-the-Dropbox/m-p/220920#M11711</link>
      <description>[Cross-linking for reference: &lt;A href="https://stackoverflow.com/questions/43917563/uploaded-files-are-not-in-dropbox" target="_blank"&gt;https://stackoverflow.com/questions/43917563/uploaded-files-are-not-in-dropbox&lt;/A&gt; ]&lt;BR /&gt;&lt;BR /&gt;Can you share the full output you're getting? Thanks in advance!</description>
      <pubDate>Fri, 12 May 2017 18:49:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploaded-files-are-not-in-the-Dropbox/m-p/220920#M11711</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-12T18:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Uploaded files are not in the Dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploaded-files-are-not-in-the-Dropbox/m-p/220947#M11716</link>
      <description>&lt;P&gt;I found my mistake! Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2017 04:39:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploaded-files-are-not-in-the-Dropbox/m-p/220947#M11716</guid>
      <dc:creator>sathish1995</dc:creator>
      <dc:date>2017-05-13T04:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Uploaded files are not in the Dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploaded-files-are-not-in-the-Dropbox/m-p/221647#M11769</link>
      <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Here I am writing some code snippet. I decalared client as global and created a singleton class.&amp;nbsp;&lt;BR /&gt;I hope this will help you.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;import SwiftyDropbox
var clientDropBox = DropboxClient(accessToken: "Put Your Valid access token here.")

class Dropboxmanager: NSObject {
    private  init(client:DropboxClient) {
        clientDropBox = client
    }
    static let sharedInstance = Dropboxmanager(client: clientDropBox)
&lt;BR /&gt;
    func dropboxSessionAndAuthorizationWithVC(vc:UIViewController)  {

        DropboxClientsManager.authorizeFromController(UIApplication.shared, controller: vc, openURL:
            { (url) in
            UIApplication.shared.openURL(url)
            weak var wself = self
            OperationQueue.main.addOperation({
            })
            wself?.downloadFilesInDropBox()

        })
    }

    func getCurrentUserInformation(completion:@escaping (String)-&amp;gt; Void)  {
        // Get the current user's account info
        clientDropBox.users.getCurrentAccount().response(completionHandler: { (response, error) in
            if let account = response {
                print("Hello \(account.name.givenName)")
                completion(account.name.givenName)
            } else {
                print(error!)
            }
        })
    }&lt;BR /&gt;
    func createFolderInDropBox(){

        clientDropBox.files.createFolder(path: "/TempFolder").response { response, error in
            if let response = response {
                print(response)
                weak var wself = self

                wself?.uploadFilesInDropBox()
            } else if let error = error {
                print(error)
            }
        }

    }&lt;BR /&gt;
    func deleteDropBox(){

        clientDropBox.files.delete(path: "/TempFolder/File.extension").response(completionHandler: { (response, error) in
            weak var wself = self
            wself?.uploadFilesInDropBox()
        })
    }

    func getListOfFolder()  {
        clientDropBox.files.listFolder(path: "").response { (response, error) in
            if let result = response {
                print("Folder contents:")
                for entry in result.entries {
                    print(entry.name)
                }
            } else {
                print(error!)
            }
        }


    }
    func uploadFilesInDropBox(){

        let strUrl = "URL_FILE"

        let url = URL(fileURLWithPath: strUrl)

        let _ = clientDropBox.files.upload(path: "", mode: Files.WriteMode.add, autorename: true, clientModified: Date(), mute: true, input: url).response { response, error in
            if let response = response {
                print(response)
                CoreDataManager.sharedInstance.deleteAllCoredataObjects()
            } else if let error = error {
                print(error)
            }
            }
            .progress { progressData in
                print(progressData)
        }
        
    }
     
    func downloadFilesInDropBox(){
        // Download to URL
        let strUrl = "Destination Url"
         
        let destURL = URL(fileURLWithPath: strUrl)
        let destination: (URL, HTTPURLResponse) -&amp;gt; URL = { temporaryURL, response in
            return destURL
        }
         
        clientDropBox.files.download(path:"/TempFolder/File.extension", overwrite: true, destination: destination)
            .response { response, error in
                if let response = response {
                    print(response)
                } else if let error = error {
                    print(error)
                }
                                
            }
            .progress { progressData in
                print(progressData)
        }
    }
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 May 2017 18:36:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploaded-files-are-not-in-the-Dropbox/m-p/221647#M11769</guid>
      <dc:creator>kyo</dc:creator>
      <dc:date>2017-05-17T18:36:12Z</dc:date>
    </item>
  </channel>
</rss>

