NENosService

@objcMembers
public class NENosService : NEBaseService
  • 上传文件到nos

    Declaration

    Swift

    public func uploadResource(filePath: String, progress: ((Float) -> Void)? = nil, callback: NECallback<String>? = nil)

    Parameters

    filePath

    文件的本地路径

    progress

    文件上传进度回调

    callback

    文件上传结果回调,如果成功会返回url