personalized condition for uploading resource or profile image