add upload media file method