Module m_fileuploader

Model for uploading files.

Copyright © 2021 Marc Worrell

Authors: Marc Worrell (marc@worrell.nl).

Description

Model for uploading files

Function Index

m_get/3Fetch the status of an upload.
m_post/3Start a file upload or upload a block to a file uploader.
status/2
upload/4

Function Details

m_get/3

m_get(Rest::list(), Msg::zotonic_model:opt_msg(), Context::z:context()) -> zotonic_model:return()

Fetch the status of an upload

m_post/3

m_post(X1::[binary()], Msg::zotonic_model:opt_msg(), Context::z:context()) -> {ok, term()} | {error, term()}

Start a file upload or upload a block to a file uploader

status/2

status(Name::binary(), Context::z:context()) -> {ok, map()} | {error, term()}

upload/4

upload(Name::binary(), Offset::non_neg_integer(), Payload::binary(), Context::z:context()) -> {ok, map()} | {error, term()}


Generated by EDoc