You need to do customization in order to do this. You will have to first debug through to understand the existing implementation at share front for profile upload and once you got that understanding, you should be in a better position to inject your custom js instead of using the out-of-the-box.