file_support 1.0.1 copy "file_support: ^1.0.1" to clipboard
file_support: ^1.0.1 copied to clipboard

outdated

File Support is plugin very helpful for different kind of file handling operations.Its used create, update, get information about file.

File Support #

File support is plugin that allow you to perform file handling operations. Like convert file to multipart.File support also help file to upload via base64.File support have most reliable compression algorithm to compress image.

  • Get file name from file.
  • Convert file to multipart file
  • Create random file for testing puroses.
  • Create random image for flutter.
  • Extract all information about file like Name,Type,Size etc.
  • Get file extension from file.
  • Add Image Compression

Get Multipart for Dio Speciallity is that no need to define mime.It simply return any file to multipart to sent multipart object on dio request

await getMultiPartFromFile(File file) ;

return object is Multipart Object


Get File Name Without Extension. It return name of file without extension.

 getFileNameWithoutExtension(File file) ;

return object is String.


Get File Name With Extension. It return name of file with extension.

  getFileName(File file)

return object is String.


Get Extension of file. It return name extension of every file that have

getFileExtension(File file) 

return object is String.


Get Base64 for any file.(Future) It used to convert any file to base64 format just sent file object in paramter.

 getBase64FromFile(File file)  ;

return object is future String.


Get File from any Base64 This method return file from base64 just pass mention parameter.Extension is required to tell in order to decode.

 getFileFromBase64(
     {required String base64string,
      required String name,
      required String extension})

return object is Future File


Get Multipart for http module Get multipart file for http multipart request

  getHttpMutipartFile({required String field, required File file})

return object is Future http.MultipartFile


Get Image Resolution Details File support this feature help you know about image Resolution

Future<FileData>getImageReslution(File file)

return object is Future FileData contain imageheight and imagewidth paramter hold image resolution.

Get File Type File support this feature help you know about file type like image,zip etc..

getFileType(File? file)
> ```
 return object is String with image type.

** Compress File **
File support this feature help you get Compress Images in order to uplaod,
File is required, quality determines image size.

```dart
  Future<File?> compressImage(File file,{int? quality,int? rotate})

return object is File. If user get null file incase of wrong file added except images


Features and bugs #

Please file feature requests and bugs at the issue tracker.

Editor.md #

33
likes
0
pub points
86%
popularity

Publisher

unverified uploader

File Support is plugin very helpful for different kind of file handling operations.Its used create, update, get information about file.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dependencies, dio, flutter, flutter_image_compress, http, http_parser, logger, mime_type, path, path_provider, uuid

More

Packages that depend on file_support