add file name support for media
add file name support for media