trying to use jquery.file.upload with angular

529 views
Skip to first unread message

pyrrhus...@gmail.com

unread,
Oct 3, 2012, 10:51:56 AM10/3/12
to ang...@googlegroups.com
Hi,

Experimenting with angular for a couple of days now, and I'm trying to wrap the
jqeury.file.upload plugin in an Angular directive, as shown in this (non-working)
fiddle : http://jsfiddle.net/k6EZX/8/

It's working, but I've got some questions :

- although I can update the value of the fileName of the uploaded file in the model
(scope.fileName = file.name), the form containing it is not marked dirty. Why ?

- I'd rather make the jquery part of the plugin dependant on the scope of the
rirective. so in the link-function of the directive, instead of

$('#fileupload').fileupload() {...}

I'd want to do something like

$(elm).fileupload()
or
$('#fileupload', scope).fileupload();

Is that possible ? I couldn't get it to work. Any pointers appreciated, I couldn't
figure this out through the documentation. Thanks !

sav...@qubemove.com

unread,
Nov 5, 2012, 8:11:30 AM11/5/12
to ang...@googlegroups.com, pyrrhus...@gmail.com
Hi, please I am looking for the same. If I find a way around it, I'll post here, but please do the same if you find it before.

Saverio
Reply all
Reply to author
Forward
0 new messages