Project

General

Profile

« Previous | Next » 

Revision 1070

Added by Jing Tao almost 22 years ago

Add a control to get data file granted in handleUploadMethod.

View differences:

src/edu/ucsb/nceas/metacat/MetaCatServlet.java
1719 1719
        try 
1720 1720
        {
1721 1721
           //If document get lock data file grant
1722
           //if (DocumentImpl.getDataFileLockGrant(docid))
1723
           //{
1722
           if (DocumentImpl.getDataFileLockGrant(docid))
1723
           {
1724 1724
              // register the file in the database (which generates an exception
1725 1725
              //if the docid is not acceptable or other untoward things happen
1726 1726
              DocumentImpl.registerDocument(fileName, "BIN", docid, username);
......
1763 1763
              out.println("<docid>" + docid + "</docid>"); 
1764 1764
              out.println("<size>" + size + "</size>"); 
1765 1765
              out.println("</success>");
1766
          // }//if
1766
          }//if
1767 1767
    
1768 1768
        } //try
1769 1769
        catch (Exception e) 

Also available in: Unified diff