Closed babylon2017 closed 3 years ago
Facing a similar question!
Talking with the team. that does Amplify iOS will follow up when I get an answer
After reaching out and talking with the Amplify iOS team they asked you to add a :+1: to this ticket:
Closing due to inactivity
Which Category is your question related to? AWS Amplify Video
What AWS Services are you utilizing? AWS Amplify Video
Provide additional details e.g. code snippets I have an IOS project using Amplify as a backend. I have also incorporated Amplify Video in the hope of supporting video-on-demand. After adding Amplify Video to the project, an "Input" and "Output" bucket is generated. These appear outside of my project environment when visualised via the Amplify Console. They can only be accessed via navigating to AWS S3 console. My questions is, how do I upload my videos via swift to the "Input" bucket using Amplify (or don't I)?
The code I have below uploads the video to the S3 bucket within the project environment (and not to the input bucket)
let key = "myKey" Amplify.Storage.uploadData(key: key, data: vidData) { (progress) in print(progress.fractionCompleted) } resultListener: { (result) in switch result{ case .success(_ ): print("upload success!") case .failure(let error): print(error.errorDescription) } }