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
Harry Hedger
e3e1799683
Refactoring build system
2015-11-27 02:47:49 -05:00
Kevin van Zonneveld
e359e3b2a4
Merge branch 'master' into dragdrop
2015-11-27 08:31:50 +01:00
Artur Paikin
29a6c68292
Attempting to make plugins run in a waterfall of parallels
2015-11-27 01:30:08 +03:00
Kevin van Zonneveld
d07360a207
Rename to uppy
2015-11-26 16:00:49 +01:00
Kevin van Zonneveld
da07ff5954
renamed ./examples/playground/static/css/transloadit-js-client.css to ./examples/playground/static/css/uppy.css
2015-11-26 15:58:41 +01:00
Artur Paikin
8c5988a55b
Drag & Drop plugin: stage 1
2015-11-24 23:16:14 +03:00
Kevin van Zonneveld
c2cbdc02a4
Directory placeholders
2015-11-24 15:07:24 +01:00
Kevin van Zonneveld
2c8930c706
Playground fixes
2015-11-24 14:53:23 +01:00
Kevin van Zonneveld
1c10c7b08f
Cleanup
2015-11-24 14:32:21 +01:00
Kevin van Zonneveld
7a60440d4b
First swing at bundles & individual builds
2015-11-24 14:24:59 +01:00
Artur Paikin
7ba8df8411
Attempting to build a playground example with Browserify & Babel
2015-11-24 15:43:26 +03:00
Harry Hedger
783a7fa26a
Testing this
2015-11-23 10:55:11 -05:00
Harry Hedger
c024de2840
Fixed CSS Paths for normalize/skeleton
2015-11-23 10:55:11 -05:00
Harry Hedger
3adeea07b1
Updated examples build config
2015-11-23 10:55:11 -05:00