hello every one i am having trouble integrating the jQuery-File-Upload plugin in the laravel 4.2 can someone refer a tutorial? it would be so much help as i am a beginner . thank you in advance
i have made a route
Route::post('data', [
'as' => 'data',
'uses'=>'PagesController@storeGallery']);
and give the data url like this
{{Form::file('_Add_img[]', ['class' => 'p7_fil_uplod', 'id' => 'fileupload'] ,
'data-url' => URL::route("data") , 'multiple' => 'true' ]) }}
and here is the function
$(function () {
$('#fileupload').fileupload({
url : "{{URL::route('data')}}",
dataType: 'json',
done: function (e, data) {
$.each(data.result.files, function (index, file) {
$('<p/>').text(file.name).appendTo(document.body);
});
}
});
});