docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class FileDetails

    Details included when generating an upload URL for a file

    Inheritance
    object
    FileDetails
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Services.Apis.CloudSave
    Assembly: solution.dll
    Syntax
    [Preserve]
    public class FileDetails

    Constructors

    FileDetails(string, long, string, string)

    Initializes a new instance of the FileDetails class.

    Declaration
    [Preserve]
    public FileDetails(string contentType = null, long contentLength = 0, string contentMd5 = null, string writeLock = null)
    Parameters
    Type Name Description
    string contentType

    The MIME type of the file that will be uploaded (required).

    long contentLength

    The content length in bytes of the file that will be uploaded (required).

    string contentMd5

    The base64 encoded MD5 checksum of the file contents that will be uploaded (required).

    string writeLock

    Enforces conflict checking when updating an existing data item. This field should be omitted when creating a new data item. When updating an existing item, omitting this field ignores write conflicts. When present, an error response will be returned if the writeLock in the request does not match the stored writeLock..

    Properties

    ContentLength

    The content length in bytes of the file that will be uploaded

    Declaration
    [Preserve]
    public long ContentLength { get; set; }
    Property Value
    Type Description
    long

    The content length in bytes of the file that will be uploaded

    ContentMd5

    The base64 encoded MD5 checksum of the file contents that will be uploaded

    Declaration
    [Preserve]
    public string ContentMd5 { get; set; }
    Property Value
    Type Description
    string

    The base64 encoded MD5 checksum of the file contents that will be uploaded

    ContentType

    The MIME type of the file that will be uploaded

    Declaration
    [Preserve]
    public string ContentType { get; set; }
    Property Value
    Type Description
    string

    The MIME type of the file that will be uploaded

    WriteLock

    Enforces conflict checking when updating an existing data item. This field should be omitted when creating a new data item. When updating an existing item, omitting this field ignores write conflicts. When present, an error response will be returned if the writeLock in the request does not match the stored writeLock.

    Declaration
    [Preserve]
    public string WriteLock { get; set; }
    Property Value
    Type Description
    string

    Enforces conflict checking when updating an existing data item. This field should be omitted when creating a new data item. When updating an existing item, omitting this field ignores write conflicts. When present, an error response will be returned if the writeLock in the request does not match the stored writeLock.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)