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
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
contentand returns an uploaded file handle.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited