php - Multiple file uploading using pluploadBootstrap -
i using pluploadbootstrap widget multiple file uploading.but after uploading getting name of file,and new widget.please suggest me solution.i need upload uploaded file folder.below had tried.

the jquery function is
if( $.fn.pluploadbootstrap ) { $( "#div" ).pluploadbootstrap({ // general settings runtimes : 'html5,html4', url : 'controller/fileupload', max_file_size : '25600kb', chunk_size : '6400kb', unique_names : true, // resize images on clientside if can resize : { width : 320, height : 240, quality : 90 }, // specify files browse filters : [ {title : "files", extensions : "jpg, jpeg, gif, png,pdf"} ], // flash settings flash_swf_url : 'plugins/plupload/plupload.flash.swf', // silverlight settings silverlight_xap_url : 'plugins/plupload/plupload.silverlight.xap' }); } code in controller/fileupload:
array ( [name] => p181eueia91je41itdg8pu6a13ad4.pdf )
i solved issue this..
if( $.fn.pluploadbootstrap ) { $( "#plupload-demo" ).pluploadbootstrap({ runtimes : 'html5', url : baseurl+'/fileupload', max_file_size : '5mb', chunk_size : '5mb', unique_names : false, multipart: true, // resize images on clientside if can resize : { width : 320, height : 240, quality : 90 }, // specify files browse filters : [ {title : "files", extensions : "jpg,jpeg,gif,png,pdf,xlsx"} ], setup: attachcallbacks }); } and in 'fileupload'
move_uploaded_file($_files["file"]["tmp_name"],"userdocs/" . $_files["file"]["name"]);
Comments
Post a Comment