Project

General

Profile

« Previous | Next » 

Revision 1056

Added by Jing Tao over 22 years ago

Revised handleUploadRequet.

View differences:

src/edu/ucsb/nceas/metacat/MetaCatServlet.java
234 234
      //if the user clicked on the input images, decode which image
235 235
      //was clicked then set the action.
236 236
      String action = ((String[])params.get("action"))[0];  
237
      util.debugMessage("Line 213: Action is: " + action);
237
      util.debugMessage("Line 213: Action is: " + action, 1);
238 238
  
239 239
      // This block handles session management for the servlet
240 240
      // by looking up the current session information for all actions
......
683 683
      zOut =queryObj.getZippedPackage(docId, out, user, groups);
684 684
      zOut.finish(); //terminate the zip file
685 685
      zOut.close();  //close the zip stream
686
      
686 687
    } 
687 688
    catch (Exception e)
688 689
    {
......
717 718
                         e.getMessage());
718 719
      
719 720
    }//catch
721
    finally 
722
    {
723
      util.returnConnection(conn);
724
    }
720 725

  
721 726
  }//handleExportAction
722 727
  
......
1705 1710
      // Get a reference to the file part of the form
1706 1711
      FilePart filePart = (FilePart)fileList.get("datafile");
1707 1712
      String fileName = filePart.getFileName();
1708
      MetaCatUtil.debugMessage("Uploading filename: " + fileName);
1713
      MetaCatUtil.debugMessage("Uploading filename: " + fileName, 10);
1709 1714

  
1710 1715
      // Check if the right file existed in the uploaded data
1711 1716
      if (fileName != null) {

Also available in: Unified diff