Where is the upload button? I see that you can select images,...

Recommend this page to a friend!

      jQuery AJAX File Upload  >  All threads  >  Where is the upload button? I see...  >  (Un) Subscribe thread alerts  
Subject:Where is the upload button? I see...
Summary:Package rating comment
Messages:4
Author:Shawn Nolan
Date:2013-05-07 15:57:55
Update:2013-05-09 16:03:24
 

Shawn Nolan rated this package as follows:

Utility: Not sure
Consistency: Not sure

  1. Where is the upload button? I see...   Reply   Report abuse  
Picture of Shawn Nolan Shawn Nolan - 2013-05-07 15:57:55
Where is the upload button? I see that you can select images, but how are you suppose to upload them to the 'uploads' folder?

  2. Re: Where is the upload button? I see...   Reply   Report abuse  
Picture of satyam kumawat satyam kumawat - 2013-05-08 03:43:52 - In reply to message 1 from Shawn Nolan
Hello Shawn,

In the demo page the file upload is working on the CHANGE EVENT of the browse button means files will be uploaded once you choose the file.

But if you want to apply it to the upload button then you can simply bind this using the following script.

$(function() {
$('#YOUR UPLOAD BUTTON ID').fileupload('upload.php',{
onComplete : function(result){
for(var i=0,len=result.length;i<len;i++){
element = $("<div class='image'>");
image = $('<img>').attr({'src':result[i]['image']}).appendTo(element);
$('#preview').html(element);
}
}

});
});

CONCLUSION : YOU CAN APPLY THIS ON BROWSE BUTTON CHANGE EVENT OR SUBMIT BUTTON,JUST NEED TO CHANGE THE ID.

Thanks

  3. Re: Where is the upload button? I see...   Reply   Report abuse  
Picture of Shawn Nolan Shawn Nolan - 2013-05-08 03:55:34 - In reply to message 2 from satyam kumawat
Thank you for the response. I didn't see it work locally (xampp), maybe it will work on a server but I didn't see any of the images in the upload folder... Maybe a permissions deal, but I'm pretty sure I have rights to edit.

  4. Re: Where is the upload button? I see...   Reply   Report abuse  
Picture of satyam kumawat satyam kumawat - 2013-05-09 16:03:24 - In reply to message 3 from Shawn Nolan
Hello Shawn ,

The plugin already have most of the functionality.But if you want something different requirement then you can easily customize it.

Thank you very much
Satyam