Create a Media object when upload is triggered.