Project

General

Profile

« Previous | Next » 

Revision 4785

Added by daigle about 15 years ago

Change name of writeTempFile to writeTempUploadFile since this instance deals with the temporary upload dir specifically

View differences:

src/edu/ucsb/nceas/metacat/MetaCatServlet.java
2856 2856
                    String fileTempLocation;
2857 2857
                    
2858 2858
                    // the filePart will be clobbered on the next loop, save to disk
2859
                    fileTempLocation = MetacatUtil.writeTempFile(filePart, fileName);
2859
                    fileTempLocation = MetacatUtil.writeTempUploadFile(filePart, fileName);
2860 2860
                    fileList.put(name, fileTempLocation);
2861 2861
                    fileList.put("filename", fileName);
2862 2862
                    fileList.put("name", fileTempLocation);
src/edu/ucsb/nceas/metacat/util/MetacatUtil.java
774 774
	 *            the name of the file to be written to disk
775 775
	 * @return tempFilePath a String containing location of temporary file
776 776
	 */
777
    public static String writeTempFile (FilePart filePart, String fileName) throws IOException {
778
        Logger logMetacat = Logger.getLogger(MetaCatServlet.class);
777
    public static String writeTempUploadFile (FilePart filePart, String fileName) throws IOException {
779 778
        String tempFilePath = null;
780 779
        String tempDirPath = null;
781 780
        try {
......
840 839
	 *            the destination file on disk
841 840
	 */
842 841
    public static void copyFile(String sourceName, String destName) throws IOException {
843
        Logger logMetacat = Logger.getLogger(MetaCatServlet.class);
844 842

  
845 843
        File sourceFile = new File(sourceName);
846 844
        File destFile = new File(destName);

Also available in: Unified diff