text: var fileobj;
  
  function upload_file(e) {
      e.preventDefault();
      fileobj = e.dataTransfer.files[0];
      ajax_file_upload(fileobj);
  }
  
  function file_explorer() {
      document.getElementById('selectfile').click();
      document.getElementById('selectfile').onchange = function() {
          fileobj = document.getElementById('selectfile').files[0];
          input = document.getElementById('selectfile');
          if (input.files && input.files[0]) {
              var reader = new FileReader();
  
              reader.onload = function(e) {
                  $('#output').attr('src', e.target.result);
              }
  
              reader.readAsDataURL(input.files[0]);
          }
      };
  }