// tell UploadProgressListener which component is receiving
// file
pl.setUpload(uploadComponent);
try {
uploadComponent.receiveUpload(upstream);
} catch (UploadException e) {
// error happened while receiving file. Handle the
// error in the same manner as it would have happened in
// variable change.
synchronized (application) {