Jump to content

Recommended Posts

 <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

 

Link to comment
https://forums.phpfreaks.com/topic/326582-dropzone/
Share on other sites

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...

Link to comment
https://forums.phpfreaks.com/topic/326582-dropzone/#findComment-1648223
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.