move contents of fileUploadReceiver to synchronized method

help avoid concurrent access bugs. for the kids.