public async Task <IActionResult> UploadAsset(
            [HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = null)] HttpRequest req,
            ILogger log)
        {
            var    file         = req.Form.Files["file"];
            string fileLocation = envPhysicalFilesDir + file.FileName;
            var    reqBody      = await req.ReadFormAsync();

            string url          = reqBody["UploadURL"];
            Uri    reqUploadURL = new Uri(url);
            bool   fileExists   = File.Exists(fileLocation);

            try
            {
                if (fileExists)
                {
                    await _amsService.UploadFile(reqUploadURL, fileLocation);
                }

                return(new OkObjectResult(""));
            }
            catch (Exception ex)
            {
                return(new BadRequestObjectResult(ex.Message));
            }
        }