Show / Hide Table of Contents

Class UploadArg

The upload arg object

Inheritance
System.Object
CommitInfo
UploadArg
Inherited Members
CommitInfo.Path
CommitInfo.Mode
CommitInfo.Autorename
CommitInfo.ClientModified
CommitInfo.Mute
CommitInfo.PropertyGroups
CommitInfo.StrictConflict
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dropbox.Api.Files
Assembly: Dropbox.Api.dll
Syntax
public class UploadArg : CommitInfo

Constructors

| Improve this Doc View Source

UploadArg(String, WriteMode, Boolean, Nullable<DateTime>, Boolean, IEnumerable<PropertyGroup>, Boolean, String)

Initializes a new instance of the UploadArg class.

Declaration
public UploadArg(string path, WriteMode mode = null, bool autorename = false, DateTime? clientModified = null, bool mute = false, IEnumerable<PropertyGroup> propertyGroups = null, bool strictConflict = false, string contentHash = null)
Parameters
Type Name Description
System.String path

Path in the user's Dropbox to save the file.

WriteMode mode

Selects what to do if the file already exists.

System.Boolean autorename

If there's a conflict, as determined by mode, have the Dropbox server try to autorename the file to avoid conflict.

System.Nullable<System.DateTime> clientModified

The value to store as the clientModified timestamp. Dropbox automatically records the time at which the file was written to the Dropbox servers. It can also record an additional timestamp, provided by Dropbox desktop clients, mobile clients, and API apps of when the file was actually created or modified.

System.Boolean mute

Normally, users are made aware of any file modifications in their Dropbox account via notifications in the client software. If true, this tells the clients that this modification shouldn't result in a user notification.

System.Collections.Generic.IEnumerable<PropertyGroup> propertyGroups

List of custom properties to add to file.

System.Boolean strictConflict

Be more strict about how each WriteMode detects conflict. For example, always return a conflict error when mode = WriteMode.Update and the given "rev" doesn't match the existing file's "rev", even if the existing file has been deleted. This also forces a conflict even when the target path refers to a file with identical contents.

System.String contentHash

A hash of the file content uploaded in this call. If provided and the uploaded content does not match this hash, an error will be returned. For more information see our Content hash page.

Properties

| Improve this Doc View Source

ContentHash

A hash of the file content uploaded in this call. If provided and the uploaded content does not match this hash, an error will be returned. For more information see our Content hash page.

Declaration
public string ContentHash { get; protected set; }
Property Value
Type Description
System.String
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • UploadArg(String, WriteMode, Boolean, Nullable<DateTime>, Boolean, IEnumerable<PropertyGroup>, Boolean, String)
  • Properties
    • ContentHash
Back to top Generated by DocFX