updated file upload and fixed null exception in mementobeans