RamyaSri Posted Sunday at 12:05 PM Share Posted Sunday at 12:05 PM <div class="dropzone" id="fileupload"></div> <input type="hidden" id="docus_notes_media" name="sell_document" value=""> <script type="text/javascript"> var sell_file_names = []; dropzoneInstance = $("div#fileupload").dropzone({ url: base_path+'/project/post-media-dropzone-upload', paramName: 'file', uploadMultiple: true, autoProcessQueue: true, headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, success: function(file, response) { if (response.success) { toastr.success(response.msg); sell_file_names.push(response.file_name); $('input#docus_notes_media').val(sell_file_names); } else { toastr.error(response.msg); } }, }); </script> I am uploading multiple files and moving files to folder all files are moving but in inspect page hidden sell_document filed show only one file name if i try to save in data base all files are saving with same name can you help me all files name get and show in inspect page if it is show in inspect page i can save backend easily Quote Link to comment https://forums.phpfreaks.com/topic/326582-dropzone/ Share on other sites More sharing options...
Moorcam Posted Sunday at 12:20 PM Share Posted Sunday at 12:20 PM 12 minutes ago, RamyaSri said: <div class="dropzone" id="fileupload"></div> <input type="hidden" id="docus_notes_media" name="sell_document" value=""> <script type="text/javascript"> var sell_file_names = []; dropzoneInstance = $("div#fileupload").dropzone({ url: base_path+'/project/post-media-dropzone-upload', paramName: 'file', uploadMultiple: true, autoProcessQueue: true, headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, success: function(file, response) { if (response.success) { toastr.success(response.msg); sell_file_names.push(response.file_name); $('input#docus_notes_media').val(sell_file_names); } else { toastr.error(response.msg); } }, }); </script> I am uploading multiple files and moving files to folder all files are moving but in inspect page hidden sell_document filed show only one file name if i try to save in data base all files are saving with same name can you help me all files name get and show in inspect page if it is show in inspect page i can save backend easily Place your code insode code blocks. Like so... Code here... Quote Link to comment https://forums.phpfreaks.com/topic/326582-dropzone/#findComment-1648223 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.