Behaviour: openflax.handler.
This handler's security/featurefulness tradeoff level is 9 (Insecure.) It creates files in the filesystem. It never overwrites existing files.
This handler requires openflax.handler.file and
openflax.handler.template.
This handler is intended to serve mostly as an example for writing an upload handler. It is suitable within a trusted environment such as a home LAN, but cannot be used without risk on a public network.
| serve/1 | Serves a resonse to an upload request. |
| start/1 | Initializes the uploads subsystem. |
| stop/1 | Shuts down the uploads subsystem. |
serve(Conf::conf()) -> {response(), conf()}
Serves a resonse to an upload request.
We assume the request was a multipart/form-data request, and
instead of calling openflax.http.request:collect_body/1, we
elect to receive the messages ourself.
Initializes the uploads subsystem.
Shuts down the uploads subsystem.