Artur Paikin
63b5769e0b
add closeModalOnClickOutside in example
2017-08-31 14:10:56 +03:00
Artur Paikin
fbc66be79d
clean up main.js example/dev file
2017-08-24 23:59:00 +03:00
Artur Paikin
a974c9571a
resizeTo --> license
2017-08-18 14:07:15 +03:00
Artur Paikin
4001ab700b
Merge branch 'master' into feature/restore-files
2017-08-15 21:20:13 +03:00
Artur Paikin
a6cf96d091
add ServiceWorker.js, clean stuff up
2017-08-15 17:18:42 +03:00
Renée Kooi
94d6267952
docs/examples: Fix CORS policy in S3 docs and fix reading body in PHP example.
2017-08-15 13:01:55 +02:00
Renée Kooi
030fe49e74
examples: Add the AWS S3 server-side presigned URL example.
2017-08-15 12:51:34 +02:00
Artur Paikin
0a23a4ac0c
serviceworker, send fileCache even if empty
2017-08-14 19:38:32 +03:00
Artur Paikin
00257e5348
added hideUploadButton flag to hide the upload button, for cases when you want to manually stat the upload
2017-08-07 16:15:07 +02:00
Artur Paikin
59a170ec0e
Initial take on using Local Storage for storing file state and Service Worker to store file blobs, and then restore on boot
2017-07-21 15:19:04 +02:00
Artur Paikin
34ea05f97d
if no countdown, show “smile” right away, fixes on @goto-bus-stop comments
2017-07-16 23:57:11 +02:00
Artur Paikin
db744c7d1b
fixed the closing tab or pressing “capture” multiple times issue, default “smile” without countdown
2017-07-14 21:05:02 +02:00
Artur Paikin
2e8f15fb26
countdown, timer variable, simple locale
2017-07-13 23:48:29 +02:00
Artur Paikin
6c2dfe8f7d
Add onBeforeSnapshot hook and oneTwoThreeSmile
...
So if you set `oneTwoThreeSmile: true` in Webcam options, it will count
to 3 before taking a snapshot
2017-07-10 18:10:38 +02:00
Artur Paikin
23720da5dc
clean up example
2017-07-02 23:31:12 -04:00
Artur Paikin
0405244222
fix metadata and core:file-added event
2017-07-02 06:57:16 -04:00
Artur Paikin
d271ba30eb
merge master into feature/restrictions
2017-07-02 05:11:33 -04:00
Artur Paikin
b6889d586b
fix main.js
2017-07-01 16:20:28 -04:00
Artur Paikin
63b8e54e9a
Merge branch 'master' into feature/form-meta
2017-06-30 20:14:04 -04:00
Artur Paikin
b3349ad42d
main.js
2017-06-30 20:07:08 -04:00
Artur Paikin
f42904ca37
screw it and go with promises, because it was becoming difficult internally
2017-06-30 13:26:55 -04:00
Artur Paikin
36568cd9c8
added mime-match, restrictions is object, onBeforeFileAdded and onBeforeUpload callbacks
2017-06-30 13:14:51 -04:00
Artur Paikin
faeddd2fbb
Merge branch 'master' into feature/restrictions
2017-06-29 19:17:16 -04:00
Artur Paikin
047e51b77b
add get-form-data, move things around
2017-06-29 19:06:04 -04:00
Kevin van Zonneveld
9a111edd09
Merge branch 'master' into instagram-plugin
2017-06-29 09:13:33 +02:00
Artur Paikin
6f80ea709c
Extract metadata from form, closes #153
...
This PR adds support for extracting metadata from `<form>` elements.
This was asked #153 and came up elsewhere too, I believe. You can use
it like this:
```html
<form class="MyForm" action="/">
<input type="file" />
<input type="hidden" name="bla" value="12333">
<input type="text" name="yo" value="1">
<button type="submit">Upload</button>
</form>
```
```js
uppy.use(DragDrop, {
target: '.MyForm',
locale: {
strings: {chooseFile: 'Выберите файл'}
},
setMetaFromTargetForm: true
})
```
Then UI acquire type plugins, like Dashboard, FileInput and DragDrop,
before mounting themselves or doing anything else, extract FormData
from the `target` `<form>` element (it must be a form currently), and
merge the object with the global `state.meta`. This is done via
`setMeta` method on core. Then, when a file is added, `state.meta` is
merged to that file’s meta right away. The ability to add more fields
via UI plugin MetaData is also still there, though probably needs an
update.
In addition a new `meta` option is added in core:
```js
const uppy = Uppy({
debug: true,
autoProceed: true,
meta: {
username: 'Artur'
}
})
```
This way some data can be set right away, it becomes the initial
`state.meta` object.
2017-06-28 20:21:23 -04:00
Ifedapo Olarewaju
362ed5ef9b
chores: no eavesdropping
2017-06-27 19:25:59 +01:00
Ifedapo Olarewaju
d0122f951f
feature: instagram plugin [WIP]
2017-06-27 00:25:12 +01:00
Ifedapo Olarewaju
c264d390f6
docs: non bundled example
2017-06-20 17:05:14 +01:00
Harry Hedger
b46e4aa277
Run npm run build:examples to build examples
2015-12-08 09:16:11 -05:00
Harry Hedger
557415dd19
Moved dropbox example to website/src/examples
2015-12-07 12:38:15 -05:00
Harry Hedger
ae8040f6dd
Moved examples to website/src/examples
2015-12-07 12:38:15 -05:00
Harry Hedger
40579226a6
Initial website example
2015-12-07 12:38:15 -05:00
Harry Hedger
6802cdcc01
Added .empty
2015-12-05 15:01:20 -05:00
Harry Hedger
d418dba372
Rm static dropbox app.js
2015-12-05 15:01:20 -05:00
Harry Hedger
b416ed59d0
cleanup and fixed dir string
2015-12-05 15:01:20 -05:00
Harry Hedger
d57c9d8637
Working example for dropbox selector
2015-12-05 15:01:20 -05:00
Artur Paikin
6f397c82e0
My name is Uppy now
2015-12-03 14:26:54 +03:00
Artur Paikin
934f8a6848
Utils, defaultOptions
2015-12-02 15:09:27 +03:00
Artur Paikin
9d611e2104
Actual puppy in playground (important), status support (draft), styles for playground and uppy separated
2015-12-02 13:52:42 +03:00
Artur Paikin
408ad53688
Fallbacks, new jQuery-like functions in Utils, styles
2015-12-02 13:10:23 +03:00
Artur Paikin
7e988872b0
Form with file select fallback in playground, comments, check support for drag & drop in the browser
2015-12-01 18:14:32 +03:00
Artur Paikin
f28804e36a
Changed import sources to fix errors
2015-11-27 17:21:18 +03:00
Harry Hedger
e5f493c9d5
Removed client folder
2015-11-27 08:54:15 -05:00
Artur Paikin
464e8293dc
Merge
2015-11-27 08:54:14 -05:00
Artur Paikin
59121f55e1
Attempting to make plugins run in a waterfall of parallels
2015-11-27 08:54:13 -05:00
Artur Paikin
6c2aa68fb0
Merge branch 'master' into dragdrop
...
Conflicts:
package.json
src/core/Transloadit.js
2015-11-27 14:08:00 +03:00
Artur Paikin
f4716e7236
Resolved conflict
2015-11-27 12:35:03 +03:00
Artur Paikin
eb21099650
Merge
2015-11-27 12:27:48 +03:00
Harry Hedger
40d50b58ec
Modified build system. Added dist build script
2015-11-27 02:49:20 -05:00