[api] Upload files or fetch online resources to create Media