fix media upload & download url bug