[NF] Implemented method createMediaFile.