0.0.6 • Published 5 years ago

pat-upload v0.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

#pat-upload

A pattern that creates a drop area for uploading multiple files.

Based on fineuploader.

##demo

To view a demo of how this pattern works, clone the repository:

git clone https://github.com/Patternslib/pat-upload.git

The run the Makefile:

make

And then in your browser open: http://localhost:4001

Documentation

PropertyValueDefaultTypeDescription
ajax-uploadtrue, falsetruebooleanFor letting the widget upload the files via ajax. If false the form will act like a normal form.
post-uploadtrue, falsetruebooleanCondition value for the file preview in div element to fadeout after file upload is completed.
base-urlurl stringnullstringTo be used in conjunction with relative-path to.
class-nameclass nameuploadstringValue for class attribute in the form element.
clickabletrue, falsefalsebooleanIf you can click on container to also upload.
current-pathpath stringnullstringCurrent path related items is starting with.
labelstringDrop files here…stringLabel text to show on the upload zone.
namename attrfilestringValue for name attribute in the file input element.
previews-container.previewsselectorJavaScript selector for file preview in div element.
triggertrigger namebuttonstringWhat triggers the upload. 'button' expects user to click upload button, 'auto' starts uploading automatically after the user drags something, and always hides the upload button.
urlurl stringnullstringIf not used with a form, this option must provide the URL to submit to.
0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

7 years ago