<?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: Update files (images) and keep creation date in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Update-files-images-and-keep-creation-date/m-p/197639#M9111</link>
    <description>What piece of metadata are you looking at specifically when you refer to the file's creation date? Can you share a sample? Thanks in advance!</description>
    <pubDate>Tue, 13 Dec 2016 21:45:12 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-12-13T21:45:12Z</dc:date>
    <item>
      <title>Update files (images) and keep creation date</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Update-files-images-and-keep-creation-date/m-p/197636#M9108</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the upload api to send some images to my Dropbox account. What I'm noticing is that the images' creation dates are being set to the upload date. So if I took a picture yesterday on my iPhone, and today sending it on my app, through the Dropbox API, the creation date is "now". That's rather unfortunate. The Camera Upload folder keeps the creation date on the files though, so I would like to know if that's possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Being a bit more technical, I'll post some code. I'm using Swift 3 and iOS 10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm actually fetching the Image Data through:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PHAsset.fetchAssets(withALAssetURLs: [imageLocalUrl], options: nil)

PHImageManager.default()&lt;BR /&gt;  .requestImageData(for: asset, &lt;BR /&gt;                    options: requestOptions) { resultData, response, orientation, info in
            data = resultData
  }&lt;/PRE&gt;&lt;P&gt;Then using the Dropbox upload api like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DropboxClientsManager&lt;BR /&gt;   .authorizedClient&lt;BR /&gt;   .files&lt;BR /&gt;   .upload(path: "&amp;lt;path/to/folder/imageName.jpg&amp;gt;", input: data)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:27:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Update-files-images-and-keep-creation-date/m-p/197636#M9108</guid>
      <dc:creator>Nuno G.2</dc:creator>
      <dc:date>2019-05-29T09:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Update files (images) and keep creation date</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Update-files-images-and-keep-creation-date/m-p/197639#M9111</link>
      <description>What piece of metadata are you looking at specifically when you refer to the file's creation date? Can you share a sample? Thanks in advance!</description>
      <pubDate>Tue, 13 Dec 2016 21:45:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Update-files-images-and-keep-creation-date/m-p/197639#M9111</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-12-13T21:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Update files (images) and keep creation date</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Update-files-images-and-keep-creation-date/m-p/197641#M9112</link>
      <description>&lt;P&gt;Not sure. I was actually thinking this would be automatically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Finder (macOS) I'm actually seeing this on an image that I just uploaded but the picture itself was taken well before.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/i8v58nrq1igjj0b/Screenshot%202016-12-13%2021.46.04.png?dl=0" target="_self"&gt;https://www.dropbox.com/s/i8v58nrq1igjj0b/Screenshot%202016-12-13%2021.46.04.png?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Camera Upload folder keeps the dates propperly according to the photo creation date.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 21:50:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Update-files-images-and-keep-creation-date/m-p/197641#M9112</guid>
      <dc:creator>Nuno G.2</dc:creator>
      <dc:date>2016-12-13T21:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Update files (images) and keep creation date</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Update-files-images-and-keep-creation-date/m-p/197643#M9113</link>
      <description>&lt;P&gt;I see, thanks for clarifying. In that case, in order to preserve that when uploading via the API, set the&amp;nbsp;clientModified to be the expected&amp;nbsp;time when calling &lt;A href="https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/FilesRoutes.html#/s:FC13SwiftyDropbox11FilesRoutes6uploadFT4pathSS4modeOCS_5Files9WriteMode10autorenameSb14clientModifiedGSqV10Foundation4Date_4muteSb5inputVS3_4Data_GCS_13UploadRequestCS1_22FileMetadataSerializerCS1_21UploadErrorSerializer_" target="_self"&gt;upload&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 22:26:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Update-files-images-and-keep-creation-date/m-p/197643#M9113</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-12-13T22:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Update files (images) and keep creation date</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Update-files-images-and-keep-creation-date/m-p/197657#M9114</link>
      <description>&lt;P&gt;Thank you very much. I hadn't found that documentation yet. Shame on me. Thanks again.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 23:27:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Update-files-images-and-keep-creation-date/m-p/197657#M9114</guid>
      <dc:creator>Nuno G.2</dc:creator>
      <dc:date>2016-12-13T23:27:56Z</dc:date>
    </item>
  </channel>
</rss>

