ClonableMultipartFile class
A MultipartFile class which support cloning of the file for re-submission of POST request.
Constructors
-
ClonableMultipartFile.new(String filePath, String field, Stream<
List< stream, int length, {String? filename, MediaType? contentType})int> > - ClonableMultipartFile.fromFileSync(String filePath)
-
Creates a new ClonableMultipartFile from a file specified by
the
filePath
.factory
Properties
- contentType → MediaType
-
The content-type of the file.
finalinherited
- field → String
-
The name of the form field for the file.
finalinherited
- filename → String?
-
The basename of the file.
finalinherited
- filePath → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFinalized → bool
-
Whether
finalize
has been called.no setterinherited - length → int
-
The size of the file in bytes.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cleanup(
) → void - Cleanup this ClonableMultipartFile, i.e., deleting the buffer.
-
clone(
) → ClonableMultipartFile - Make a clone of this ClonableMultipartFile.
-
finalize(
) → ByteStream -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited