Creating media-file and media-entry during upload