Changeset 182


Ignore:
Timestamp:
Feb 9, 2010, 4:21:01 PM (9 years ago)
Author:
keesvb
Message:

small change to importer to avoid cross-platform issues (now works under Windows as well)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/importer/ImporterController.groovy

    r173 r182  
    3838    def upload = {
    3939        def downloadedfile = request.getFile('importfile');
    40         def tempfile = new File("/tmp/" + System.currentTimeMillis() + ".nmcdsp")
    41 
     40        def tempfile = new File(System.getProperty('java.io.tmpdir') + File.pathSeparator + System.currentTimeMillis() + ".nmcdsp")
    4241        downloadedfile.transferTo(tempfile)
    4342       
Note: See TracChangeset for help on using the changeset viewer.