Project

General

Profile

« Previous | Next » 

Revision 6684

Added by Jing Tao over 12 years ago

set the uploade file size -1.

View differences:

ClientViewHelper.java
64 64
    private int                                         sizeLimit;
65 65
    private String                                      contactName = "";
66 66
    
67
    private static final int DEFAULTFILESIZE = -1;
67 68
    private static final String                         LDAP_TEMPLATE = "uid=%1s,o=%2s,dc=ecoinformatics,dc=org";
68 69
    
69 70
    public static final String                          DOWNLOAD_ACTION = "Download";
......
450 451
                dataDocIDs.put(nextDocId, fileInfo);
451 452
                
452 453
                //*** Upload the data file to metacat.
453
                getMetacatClient().upload(nextDocId, fileName.toString(), inputStream, Integer.MAX_VALUE);
454
                getMetacatClient().upload(nextDocId, fileName.toString(), inputStream, DEFAULTFILESIZE);
454 455
                
455 456
                lastDocId = nextDocId;
456 457
                fileName = new StringBuffer();
......
595 596
                        newDocId = nextVersion(lastDocId, xPathQuery);
596 597
                        ClientFgdcHelper.updateFileNameAndType(getMetadataDoc().getDocumentElement(), newDocId, fileInfo);
597 598
                        //*** Upload the data file to metacat.
598
                        getMetacatClient().upload(newDocId, fNm, inputStream, Integer.MAX_VALUE);
599
                        getMetacatClient().upload(newDocId, fNm, inputStream, DEFAULTFILESIZE);
599 600
                        result = "Updated to new document (from " + lastDocId + " to " + newDocId + ")";
600 601
                        
601 602
                        //*** Upload the metadata file to metacat.

Also available in: Unified diff