assets/Code examples/WebAppSDK/photoSharingWidget/js/example3.js
/**
       * Start the file upload.
       *
       * @param {Object} evt Arguments from the file selector.
       */
Start the file upload.
@param {Object} evt Arguments from the file selector.
Start the file upload . @param { Object } evt Arguments from the file selector .
function uploadFile(evt) {
        gapi.client.load('drive', 'v2', function() {
          var file = evt.target.files[0];
          insertFile(file);
        });
      }
function uploadFile ( evt ) { gapi . client . load ( 'drive' , 'v2' , function ( ) { var file = evt . target . files [ 0 ] ; insertFile ( file ) ; } ) ; }
Start the file upload.
Start the file upload .