You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to include WebDAV as an alternative to Dropbox in my project. What my app does is upload and download a file. I copied the demo code and now I'm trying it out a bit. I noticed that the first time I downloaded the file from my WebDAV server, I had no problems saving it to the iPhone, but the next download fails, probably because the local file is not overwritten. Here the message from the simulator:
Downloading kb_daten.sqlite to kb_daten.sqlite: 34.594597 completed.
Downloading kb_daten.sqlite to kb_daten.sqlite: 69.18919 completed.
Downloading kb_daten.sqlite to kb_daten.sqlite: 100.0 completed.
copying kb_daten.sqlite to file:///Users/dirk/Library/Developer/CoreSimulator/Devices/A54B2D35-83C6-4A3E-9D29-BD2419BBBCED/data/Containers/Data/Application/1C8379E3-3EC9-426A-A0A3-BB2F6418D62E/Documents/kb_daten.sqlite has been failed.
I have seen that there is an "override: true", but not with the function used in the example. Here is the code the example uses and comments out the code that overwrites the file:
let progress = webdav?.copyItem(path: remotePath, toLocalURL: localURL, completionHandler: nil)
// let progress = webdav?.copyItem(path: remotePath, to: localURL.absoluteString, overwrite: true, completionHandler: nil)
Unfortunately the progress does not seem to work with the variant that overwrites the file.
How can I download a file, overwrite the local file and still get a progress?
The text was updated successfully, but these errors were encountered:
Same problem here. I ended by removing the actual file (if already existing), at path "localURL" with // remove actual temp file do { try FileManager.default.removeItem(at: localURL) } catch let error as NSError { print("Error: \(error.domain)") }
Hello,
I would like to include WebDAV as an alternative to Dropbox in my project. What my app does is upload and download a file. I copied the demo code and now I'm trying it out a bit. I noticed that the first time I downloaded the file from my WebDAV server, I had no problems saving it to the iPhone, but the next download fails, probably because the local file is not overwritten. Here the message from the simulator:
I have seen that there is an "override: true", but not with the function used in the example. Here is the code the example uses and comments out the code that overwrites the file:
Unfortunately the progress does not seem to work with the variant that overwrites the file.
How can I download a file, overwrite the local file and still get a progress?
The text was updated successfully, but these errors were encountered: