alexiscn / SynologyKit

Synology File Station SDK for Swift
MIT License
36 stars 8 forks source link

HELP WANTED - How to set options in Upload method. #4

Closed CPiersigilli closed 5 years ago

CPiersigilli commented 5 years ago

How I define options in the public function upload, to work with this public function?

var options = UploadOptions(overwrite: true)

        client.upload(data: pngdata, filename: filename, destinationFolderPath: destinationFolderPath, createParents: true, options: **options**) { (result) in

Now the error is: Cannot convert value of type 'UploadOptions' to expected argument type 'SynologyClient.UploadOptions?'

alexiscn commented 5 years ago

Bug fixed. Try 0.2.8.

CPiersigilli commented 5 years ago

I tried, but couldn't get it to work. This this the error.

Schermata 2019-11-17 alle 12 45 17
CPiersigilli commented 5 years ago

Sorry, I was wrong. Thank you for the bug fixed.