Nevron.Nov.Networking.CloudStorage Namespace / NCloudStorageService Class / UploadFileAsync Method
The ID of the folder where the file should be uploaded.
The name of the file to be uploaded.
The MIME type of the file.
The file contents as a byte array.
In This Topic
    UploadFileAsync Method
    In This Topic
    Uploads a file to the specified cloud storage folder. If a file with the same name exists, it overwrites it.
    Syntax
    public abstract NPromise<string> UploadFileAsync( 
       System.string folderId,
       System.string fileName,
       System.string mimeType,
       System.byte[] fileData
    )

    Parameters

    folderId
    The ID of the folder where the file should be uploaded.
    fileName
    The name of the file to be uploaded.
    mimeType
    The MIME type of the file.
    fileData
    The file contents as a byte array.

    Return Value

    The file ID if successful.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also