util/upload_utils library

Functions

getInt(String id) int
splitUploadFileBatches<T>(List<T> files, int? batchSize) List<List<T>>
Splits files into upload batches of at most batchSize items.
uploadPathContainsParentSegment(String? path) bool
Returns true when path contains a .. path segment after normalising \ to /.

Typedefs

OnErrorCallback = void Function(dynamic error)
ProgressCallback = void Function(double progress)