I'm trying to use the example where a file is uploaded using NSFileHandle. I get the following compile errors:
I get this 2 times:
Cannot invoke 'uploadSessionStart' with an argument list of type '(input: NSData?)'
I get the errors once in uploadFirstChunk() and once in uploadNextChunk(), both times in this statement:
var data : NSData? = nil
...
data = fileHandle!.readData(ofLength: chunkSize) as NSData?
...
dbClient.files.uploadSessionStart(input: data)<==
I also get this error in uploadNextChunk():
Type of expression is ambiguous without more context
This is the statement where it occurs:
let destPath = "/MDG/test/Test1.mp4"
...
dbClient.files.uploadSessionFinish(
cursor: Files.UploadSessionCursor(sessionId: self.sessionId, offset: UInt64(offset)),
commit: Files.CommitInfo(path: destPath),<==
input: data!)