View Source Majic.Plug (Majic v1.1.1)

A Plug to automatically set the content_type of every Plug.Upload.

One of the required option of pool, server or once must be set.

Additional options:

To use a majic pool:

plug Majic.Plug, pool: MyApp.MajicPool

To use a single majic server:

plug Majic.Plug, server: MyApp.MajicServer

To start a majic process at each file (not recommended):

plug Majic.Plug, once: true