     cmds = [
       "open #{ opts.host } #{ opts.port }"
       "user #{ auth.username } #{ auth.password }"
-      'type binary'
+      "type #{opts.type}"
       'prompt'
     ]
     cmds.push 'passive' if opts.passive

    if opts.dryrun
      grunt.log.subhead 'Dry-run mode, start display ftp script.'
      grunt.log.writeln cmds
      grunt.log.subhead 'End display ftp script.'
    else
      grunt.verbose.subhead 'Start display ftp script.'

      host: 'localhost'
      port: 21
      passive: no
      type: 'ascii'
      dryrun: no
      ftpCommand: 'ftp'
      encoding: 'utf-8'
      ftpEncoding: 'utf-8'
      mkdirs: no

    auth = grunt.file.readJSON('.ftppass')?[opts.authKey ? opts.host]

