fix uploading documents in studyprofiles