added max length on media file