C# Class CloudinaryDotNet.Actions.FileDescription

Represents a file for uploading to cloudinary
Show file Open project: cloudinary/CloudinaryDotNet Class Usage Examples

Public Methods

Method Description
FileDescription ( string filePath ) : System

Constructor to upload file by path

FileDescription ( string name, Stream stream ) : System

Constructor to upload file from stream

Private Methods

Method Description
GetFileLength ( ) : long
IsLastPart ( ) : bool

Method Details

FileDescription() public method

Constructor to upload file by path
public FileDescription ( string filePath ) : System
filePath string Either URL (http/https/s3/data) or local path to file
return System

FileDescription() public method

Constructor to upload file from stream
public FileDescription ( string name, Stream stream ) : System
name string Resource name
stream Stream Stream to read from (will be disposed with this object)
return System