```swift import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) let file = try await storage.createFile( bucketId: "", fileId: "", file: InputFile.fromPath("file.png"), permissions: [Permission.read(Role.any())] // optional ) ```