FileProvider icon indicating copy to clipboard operation
FileProvider copied to clipboard

Crash when I use 76aee40 of 05/08/18 instead 38fb3fc of 26/07/18

Open CPiersigilli opened this issue 6 years ago • 4 comments

Under the video with the use of your FileProvider version 38fb3fc of 07/26/2018: video_success

Under the video with the of FileProvider version 76aee40 of 05/08/18: video_error The error, in your SessionDelegate.swift is: schermata 2018-08-16 alle 11 27 30 My function, which calls your FileProvider, used for the two videos is:

func upLoadPhoto(index:Int, folder:String, namePhoto:String, progressPie:ProgressPieView, completion: GeoCompletionHandler) {
        progressPie.setProgress(0.0, animated: true)
        let localFileURL = namePhoto.toLocalURL()
        let to = namePhoto.toRemotePath(destFolder: folder)        
        let createProgress = webdav?.create(folder: folder, at: "/", completionHandler: { (error) in
            let geoError = self.handleWebdavError(isFolder: true, index:index, error: error)
            if !geoError.isOk {
                completion!(geoError)
                return
            }
            let copyProgress = self.webdav?.copyItem(localFile: localFileURL, to: to, completionHandler: { (error) in
                let geoError = self.handleWebdavError(isFolder: false, index: index, error: error)
                if !geoError.isOk {
                    completion!(geoError)
                    return
                }
                completion!(GeoErrorStruct(index: index)) //isOk = true, errorCode = nil, errorDescription = nil
            })
            self.copyProgressArray.append(copyProgress!)
            progressPie.observedProgress = copyProgress
        })
        self.createProgressArray.append(createProgress!)
    }

Can you help me?

CPiersigilli avatar Aug 16 '18 09:08 CPiersigilli

I tried to use the b597244 version. Unfortunately I have no errors, but copyProgress remains always at 0.

CPiersigilli avatar Aug 26 '18 20:08 CPiersigilli

@CPiersigilli I'm really sorry. I've a research project which deadline is near and I've llittle time to investigate issues. I will fix it though. Thanks.

amosavian avatar Aug 27 '18 19:08 amosavian

@amosavian Do not worry. I will be waiting for your solution to the problem. In the field, for my tests, I will use the 38fb3fc version of 07/26/2018. Thank you.

CPiersigilli avatar Aug 28 '18 07:08 CPiersigilli

Do you have any news for this problem?

CPiersigilli avatar Sep 23 '18 17:09 CPiersigilli