File class

Constructors

File(Client client, FileData fileData)

Properties

client Client
final
fileData FileData
final
fileId String?
no setter
hashCode int
The hash code for this object.
no setterinherited
hasOriginalFileUrl bool
no setter
isRemoved bool
no setter
isStored bool
no setter
mimeType String?
no setter
originalFileName String?
no setter
originalFileUrl String?
no setter
removed DateTime?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int?
no setter
uploadDate DateTime?
no setter
url String?
Returns the unique REST URL for this resource
no setter

Methods

cdnPath() CdnPathBuilder
Creates a CDN path builder for this file.
delete() File
Deletes this file from Uploadcare.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save() File
Saves this file on Uploadcare (marks it to be kept).
toString() String
A string representation of this object.
inherited
update() File
Refreshes file data from Uploadcare. This does not mutate the current {@code File} instance, but creates a new one. @return New file resource instance

Operators

operator ==(Object other) bool
The equality operator.
inherited