Module mod_fileuploader

Supervisor for the uploading files.

Copyright © 2021 Marc Worrell

Behaviours: supervisor.

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

Description

Supervisor for the uploading files.

Function Index

event/2Upload event from the UI.
init/1Supervisor callback, initialize the children.
observe_validate_query_args/3Replace all #fileuploader{} records with #upload{} and the uploaded file.
start_child/3Start a file uploader.
start_link/1Start the simple_one_for_one supervisor for the file upload processes.

Function Details

event/2

event(Z_msg_v1, Context) -> any()

Upload event from the UI.

init/1

init(X1) -> any()

Supervisor callback, initialize the children.

observe_validate_query_args/3

observe_validate_query_args(Validate_query_args, Error, Context) -> any()

Replace all #fileuploader{} records with #upload{} and the uploaded file.

start_child/3

start_child(Filename::binary(), Size::non_neg_integer(), Context::z:context()) -> {ok, map()} | {error, term()}

Start a file uploader.

start_link/1

start_link(Args) -> any()

Start the simple_one_for_one supervisor for the file upload processes.


Generated by EDoc