I'm using it, but I'm having problems connecting with one click and generating a response. After selecting a file, it automatically uploads to a folder (at least this is working), but I like to upload it to click on the button.
In addition to this, I need to return to the server after uploading an image after the database, but I have not received any response.
I am working this whole day and it is a bit disappointing, but I am not getting any other jQuery plugins like this have been updated. If you have any options, then I appreciate it .
Here's the code:
& lt ;? Php echo form_open_multipart ('admin / file / upload', array ('id' = & gt; 'fileupload')); ? & Gt; & Lt; Input type = "file" name = "user file" size = "20" multiple / & gt; & Lt; Button id = "upload_file" type = "button" class = "btn btn-primary start" & gt; & Lt; I class = "icon-upload icon-white" & gt; & Lt; / I & gt; Start uploading & lt; / Button & gt; & Lt; Script src = "// ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> & Lt; Script Type = "Text / JavaScript" src = "& lt;? = Base_url () ;? & gt; Property / Admin / JS / File Upload / Seller / jquery.ui.widget.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "& lt;? = Base_url () ;? & gt; property / admin / js / file upload / jquery.iframe-transport.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "& lt;? = Base_url () ;? & gt; property / admin / js / file upload / jquery.fileupload.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "& lt;? = Base_url () ;? & gt; property / admin / js / file upload / jquery.fileupload-ui.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; $ (Document) .ready (function () {$ ('# fileupload'). Fileupload ({url: $ ('# fileupload'). Attr ('action'), copy fileInput: incorrect, add: function (e, data } {Data.submit ();}}}}}; & lt; / script & gt;
I was also going to give suggestions but have you seen in callback methods?
.bind ('fileuploadcompleted', function (e, data) ... * /})
If you want to work after clicking on this button, you will be given a few lines of Should be able to do something:
function uploads () {$ ('# fileupload'). File uploads ({autoUpload: incorrect, url: $ ('# fileupload'). Attr ( 'Action'), substituted file input: wrong, add: function (e, data) {data.submit ();}});} $ ("icon-upload"). Click (upload me); Sorry I have not tested it.
Comments
Post a Comment