Skip to content

How to Upload a video using Tuskit.Everytime I upload I get error uploading video. #226

@niki-Solvative

Description

@niki-Solvative
 if let cloudflareModel = cloudflareModel {
                    if let secureURL = URL(string: cloudflareModel.location) {
                        SVProgressHUD.show(withStatus: "Loading...")
                        do {
                            let client =  try TUSClient(server: secureURL)
                            let uploadObject = try client.uploadFileAt(filePath: url,context: [
                                "name": fileName,
                                "filename": fileName,
                                "filetype": "video/\(url.pathExtension)"
                            ])
                            client.delegate = observer
                            client.start()
                        }catch{
                            DispatchQueue.main.async {
                                Message.show(.error, "Error uploading video")
                            }
                           
                        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions