Commit Graph

14 Commits

Author SHA1 Message Date
Luca Moser
6a11784516 Fixes wrong arguments order for factory function 2015-04-05 17:19:03 +02:00
Joe Vu
1272305a6a Major refactor
- Refactor module to extend the appropriate backbone way
- Added CommonJS support
- Just lots of cleanup
2014-12-17 03:56:31 -08:00
Joe Vu
b7cf4da18a Update backbone-model-file-upload.js
Just changed the version
2014-12-01 10:58:10 -08:00
Dima Bildin
9b815b7c7d Add jquery dependency.
Request just won't be sent If there is no global `$`, adding it to amd dependency for this case
2014-12-01 16:25:42 +02:00
Joe Vu
a1c53669d1 Fix existing "this" scope issue in progress handler 2014-10-16 16:01:33 -07:00
homeslicesolutions
dfef13aa7b Refactored some code and updated read me 2014-09-11 03:21:24 -07:00
Alejandro
48b68bdc69 handle FileList objects
Recurse FileList objects from file inputs with multiple files and add all the files, this will generate an array on the server when getting the fileattribute key.

I use this in Flask (python) as an example:
files = request.files.getlist('files')

Which returns when using fileAtrribute: 'files':
[<FileStorage: u'file1.png' ('image/png')>, <FileStorage: u'file2.png' ('image/png')>]
2014-09-09 15:28:02 -03:00
homeslicesolutions
3a31989778 Big fixes with arguments and save
The current state was completely messed up with saving and all the
different scenarios.  This update brings back my main intent of the
code and also does a separate merge of the attributes for the use of
the FileObj.  It also adds Blob support, and I finally written some
tests.
2014-08-30 12:08:56 -07:00
Joe Vu
e46cc04f02 Added "attrs" fix and new just "options" feature 2014-08-06 17:46:18 -07:00
Dima Bildin
c8360385e7 Added UMD approach to the module 2014-07-26 18:40:32 +03:00
Joe Vu
ec209ecf95 Update backbone-model-file-upload.js
Fix some updates to the "formData" logic
2014-03-18 13:21:16 -07:00
homeslicesolutions
9b7ce2291b Added support for nested objects
Objects with deep nodes will be flattened to single-level.
2014-03-18 09:17:02 -07:00
homeslicesolutions
704ca1e874 Updated README and clean up a few 2014-03-18 05:06:20 -07:00
homeslicesolutions
cdcd63b31c Initial commit 2014-03-18 04:16:27 -07:00