title: How to select a specific folder from Google Drive and upload a file into it?
body: <p>As i m trying to upload a file into a specific folder,but i can not find an object which can select a specified folder from Drive,</p>
  
  <p>as i tried here...</p>
  
  <pre><code>function doGet(e){
   var app=UiApp.createApplication();
  var panel=app.createHorizontalPanel();
  var month1=app.createListBox().addItem("January").addItem("Febuary").addItem("March").setId("month12").setName("month12");
  var upload=app.createFileUpload().setName("file");
  var uploadbutton=app.createSubmitButton("UPLOAD");
  panel.add(month1).add(upload).add(uploadbutton);
  
  var form=app.createFormPanel();
  form.add(panel);
  app.add(form);
  return app;
   }
  
     function doPost(e){
    var app=UiApp.createApplication();
  
   var month=e.parameter.month12;
   var file=e.parameter.file; //user upload fileName
  
   var files = DriveApp.getFolders();
  
    while (files.hasNext()) {
    var file = files.next();
    var fileName=file.getName();
  
    if(month==fileName){
      var doc = DocsList.createFile(file);  //that directly uploaded into the Drive List       
      Logger.log("inside");
      }
    }
  
  return app;
   }
  </code></pre>
  
  <p>DocsList directlly upladed a file into the Drive,if i use DriveApp.CreateFolder then it is creating a folder into the drive.</p>