throw new RuntimeException("Could not upload file " + upload.getFileName(), ioe);
throw new RuntimeException("Could not upload file " + fileName, ioe);
    private void checkFileUpload() {        IUploadFile upload = getUploadAsset();        if (!isUploadFileSpecified(upload)) {            return;        }        FileOutputStream promptWtr = null;        try {            File promptsDir = new File(getAssetDir());            promptsDir.mkdirs();            File promptFile = new File(promptsDir, upload.getFileName());            promptWtr = new FileOutputStream(promptFile);            CopyUtils.copy(upload.getStream(), promptWtr);            setAsset(promptFile.getName());            setUploadAsset(null);        } catch (IOException ioe) {            throw new RuntimeException("Could not upload file " + upload.getFileName(), ioe);        } finally {            IOUtils.closeQuietly(promptWtr);        }    }