Take Your Search Game to the Next Level with Dropbox Dash 🚀✨ Curious how it works? Ask us here!
Forum Discussion
FrankB
2 years agoExplorer | Level 4
Funktion Kamera-Uploads (reiner Upload oder Synchronisation??)
Hallo, eine Frage zur Funktion von "Kamera-Uploads".
Habe ein iPhone.
Diese Funktion "Kamera-Uploads" ist das eine reine Upload Funktion oder werden Fotos synchronisiert?
Ich möchte diese Funkion nutzen, quasi als Backup meiner Fotos vom Handy in der Dropbox.
Um dann die Fotos auf dem Handy zu löschen.
Wenn ich im Anschluss die Fotos am Handy lösche, werden die dann in Kamera-Uploads im Nachhinein auch gelöscht? oder bleiben die in Kamera-Uploads?
Thanks I didn't think to look at the test cases! For future reference for other users looking for the same, here's the version of my Swift code adapted from the test that works:
var filesCommitInfo = [URL : Files.CommitInfo]() for filePath in filePaths { let fileUrl: URL! = URL(string: "file://\(filePath)") let uploadToPath = "/\(fileUrl.lastPathComponent)" filesCommitInfo[fileUrl] = Files.CommitInfo(path: uploadToPath, mode: Files.WriteMode.overwrite) } self.dropboxClient!.files.batchUploadFiles( fileUrlsToCommitInfo: filesCommitInfo, responseBlock: { (uploadResults: [URL: Files.UploadSessionFinishBatchResultEntry]?,
finishBatchRequestError: CallError<Async.PollError>?,
fileUrlsToRequestErrors: [URL: CallError<Async.PollError>]) -> Void in if let uploadResults = uploadResults { for (clientSideFileUrl, result) in uploadResults { switch(result) { case .success(let metadata): let dropboxFilePath = metadata.pathDisplay! print("Upload \(clientSideFileUrl.absoluteString) to \(dropboxFilePath) succeeded") case .failure(let error): print("Upload \(clientSideFileUrl.absoluteString) failed: \(error)") } } } else if let finishBatchRequestError = finishBatchRequestError { print("Error uploading file: possible error on Dropbox server: \(finishBatchRequestError)") } else if fileUrlsToRequestErrors.count > 0 { print("Error uploading file: \(fileUrlsToRequestErrors)") } })PS Greg I've been browsing the forums lately and you seem to be everywhere, answering people's questions with unlimited patience and kindness. Just wanted to say you're a superstar, thanks
1 Reply
Sort By
- ernstMreicher58
Super User
"…nach Dropbox hochgeladen…"
https://help.dropbox.com/de-de/create-upload/camera-uploads-overview
keine Synchronisation…
About Eine Frage stellen
Sie haben Fragen? Richten Sie sie an die Dropbox Community!
Need more support
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!