1

I found some solution to it using jquery plugin formajax, did well in computers and laptop but got problem in ipad, tablet , mobiles. Is there is anyway to do so, currently i am doing like this

$(document).on('submit','#mulitpartform',function(e){
    e.preventDefault();
    $('#multipartform').ajaxSubmit({
       'method'    :    "url",
       beforeSend  :    function(){
                         //overlay
                        },
       success     :    function(responseText)
                        {
                          // stuffs
                         },
       error       :     function()
                         {

                         },
       complete    :     function()
                         {
                           //trunoff overlay
                         } 
    });
}); 

it works fine in laptop,computers but experience problem in mobile devices; what should i do to get out of it.

  • kiran ji i tried it to but didn't work –  Jan 15 '16 at 06:31
  • 1
    What did you try and what was the result? Can you describe a bit more? – Kiran Shakya Jan 15 '16 at 06:34
  • no error as $('#multipartform').ajaxSubmit(); but somehow it couldnot send file to backend, while i try to read Input::file("file_name"); function of laravel it returns empty value; when i comment e.preventDefault () it works; the problem occurs only in mobile devices but works fine in desktop; I use chrome inspector to inspect mobile chrome didnot show any error around it. –  Jan 18 '16 at 06:53
  • 1
    It seems you are trying to upload file using ajax. For same purpose I would like to refer link: http://stackoverflow.com/questions/19447435/ajax-upload-image – Kiran Shakya Jan 18 '16 at 07:09
  • yes this works fine thanks –  Jan 18 '16 at 07:25
  • Kiran ji I think you are too good at front-end programming ... can you specify some links that help to show the upload progress bar; backend is php –  Jan 18 '16 at 07:29
  • Try https://blueimp.github.io/jQuery-File-Upload/. It is one of the best ajax uploader solution. – Kiran Shakya Jan 18 '16 at 07:34

0 Answers0