I am using UIDocumentPickerViewController to pick a file from Dropbox and get the callback.
Here is the code:
- (void)documentPicker:(UIDocumentPickerViewController *)controller didPickDocumentAtURL:(NSURL *)url
{
// The user selected the document
[self importURL:url];
}
At the point I get to my importURL call, the url points to the file in tmp\DocumentPickerIncoming\
If I use Xcode - Devices to download the container, I find that the incoming file is a previous version of the file from the one that I see in the Dropbox app on the same device. So, I have made a change to the (.csv) data file that I am importing, but my app doesn't get that newest file.
This seems to be out of my control from my app's end. Is there some refresh that has to happen? It seems strange that the Dropbox app shows a different newer version of the file compared to what comes in from the Document Provider.