Updated upload method to do join of media