reformation.fileupload

change-dragging

(change-dragging event DRAGGING true?)
Change the status of dragging atom, stopping propogation

drag-drop

(drag-drop event DRAGGING opt-map)
Stop events and handle dropped file

file-handler

(file-handler event opt-map)
Handles an event of a file beign selected, getting the file from an event
and including it in the `opt-map` for parse-file

file-upload

(file-upload {:keys [style-classes submit-text submit-fn error-text submit-button save-fn allowed-extensions-f], :or {submit-text "Click or Drop a File Here"}, {:keys [drag-over inactive have-file], :or {drag-over "dragover", inactive "undragged", have-file "have-file"}} :style-classes, :as opt-map})
Generate the hiccup necessary for a file-upload area, which can be clicked or have a file dropped on it.

If no `submit-button` is given, it will auto-submit upon dropping using `submit-fn`

filelist-to-vec

(filelist-to-vec js-col)

generate-hidden-upload-input

(generate-hidden-upload-input opt-map)
Generate a hidden input prompt for the on-click event of the drop
zone

parse-file

(parse-file {:keys [file allowed-extensions-f save-fn bad-ext-fn]})

round-to-2

(round-to-2 num)
round to two decimals

size-format

(size-format size)