Skip to content

v1.1.0 release

Compare
Choose a tag to compare
@xis xis released this 11 Aug 18:46
· 73 commits to master since this release

removed WithMultipartReader, WithParseMultipartForm options.
library just uses multipart.Reader() now.
added ParseButMax function, so you can set a maxFileSize and maxFileCount limit to parser.
you can give prefixes when storing the file now.

process.Store("user_image_")
// it will be like this in filesystem
// user_image_1.jpg
// user_image_2.png
// user-image_3.whatever

process.Filenames() for getting names of files
process.ContentTypes() for getting content types of files
process.Length() for getting total count of files

// prints filenames
fmt.Println(process.Filenames())
// prints total files count
fmt.Println(process.Length())
// prints content types of files
fmt.Println(process.ContentTypes())

new struct Options for all parsing purposes.
new struct Parts for all file operations.