New to iOS development (this will become obvious shortly).
Trying to follow these instructions for making an upload style API request:
let fileData = "testing data example".data(using: String.Encoding.utf8, allowLossyConversion: false)!
let request = client.files.upload(path: "/test/path/in/Dropbox/account", input: TestData.fileData)
I've managed to upload a sample text file by replacing 'TestData.fileData' with just 'fileData' but the file ends up being called 'account' with no extension. What was 'TestData' supposed to represent?
Also, how do I upload other types of files (mp3, jpeg, etc.) string.encoding.utf8 is clearly not the answer.
Many thanks for helping out the newbie ;-)