Module z_parse_multipart

Parse multipart/form-data request bodies.

Copyright 2007 Mochi Media, Inc.

Authors: Bob Ippolito (bob@mochimedia.com), Marc Worrell (marc@worrell.nl).

Description

Parse multipart/form-data request bodies. Uses a callback function to receive the next parts, can call a progress function to report back the progress on receiving the data.

Adapted from mochiweb_multipart.erl, integrated with webmachine and zotonic

Function Index

find_boundary/2Find the next boundary in the data.
recv_parse/1Receive and parse the form data in the request body.
recv_parse/2

Function Details

find_boundary/2

find_boundary(Prefix, Data) -> any()

Find the next boundary in the data

recv_parse/1

recv_parse(Context) -> {form(), NewContext}

Receive and parse the form data in the request body. The progress function should accept the parameters [Percentage, Context]

recv_parse/2

recv_parse(UploadCheckFun, Context) -> {form(), NewContext}


Generated by EDoc, Sep 19 2014, 11:52:01.