Monday, April 27, 2009

[jQuery] Multifile Upload and Forms plugin

Hi,

I'm using the multifile upload plugin (http://jquery-multifile-
plugin.googlecode.com/svn/trunk/index.html#) and I would like to be
able to upload an image on file select. I.e. when a user selects a
file from his computer the file is automatically uploaded (for preview
purposes).

What I'm trying to do is:

...
<form id="user_image" action="update_image.php" method="post">
<input type="file" id="T7" name="mypic" />
</form
...

<script>
...
onFileSelect: function(element, value, master_element){
//send the form with jquery Forms plugin (http://malsup.com/jquery/
form/#
)
},
...
</script>

But the Forms plugin only works when I send the form using a submit
button.

Is it possible what I'm trying to accomplish?
If yes, could somebody help me please?

No comments:

Post a Comment