Hi,
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.
Being a bit more technical, I'll post some code. I'm using Swift 3 and iOS 10.
I'm actually fetching the Image Data through:
PHAsset.fetchAssets(withALAssetURLs: [imageLocalUrl], options: nil)
PHImageManager.default()
.requestImageData(for: asset,
options: requestOptions) { resultData, response, orientation, info in
data = resultData
}
Then using the Dropbox upload api like this:
DropboxClientsManager
.authorizedClient
.files
.upload(path: "<path/to/folder/imageName.jpg>", input: data)
Thank you