Skip to content

charles-effting/multipart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multipart

A utility library to handle and validate an uploaded file. It uses a rules library provided by https://github.com/staroski/rules which makes it easier check and validate a file. For instance:

// Create the rule to check if the file is an image.
Rule rules = Rule.create(new ImageMultiPartRule());

// Validate and move the file to the target, if it's satisfied by the rules.
MultiPartFile.get(inputStream)
   .isSatisfiedBy(rules)
   .writeTo("/path/to/file");

About

An utility library to handle and validate a uploaded file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages