TempUploadStorage class final

Temp-file-backed upload storage for dart:io applications.

store writes each upload to its own directory, which Directory.createTemp creates. TempUploadedFile.dispose deletes that directory. On POSIX systems only the current user can read it. On Windows it keeps the permissions it inherits from its parent.

Implemented types

Constructors

TempUploadStorage({Directory? directory, String prefix = 'relic_upload_'})
Creates temp-file upload storage.

Properties

directory → Directory?
The parent of the upload directories.
final
hashCode → int
The hash code for this object.
no setterinherited
prefix → String
Prefix of every upload directory name.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
store({required String fieldName, required String? filename, required BodyType? bodyType, required Headers headers, required Stream<Uint8List> content}) → Future<UploadedFile>
Stores content and returns an uploaded file handle.
override
toString() → String
A string representation of this object.
inherited

Operators

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