288289290291292293294295296297298
while ((bytesRead = stream.read(buf)) != -1) { receiveUpload.write(buf, 0, bytesRead); } receiveUpload.close(); } catch (IOException e) { throw new UploadException(e); } // clean up the reference when file is downloaded receivers.remove(fileId); }
287288289290291292293294295296297