My ASP.NET Core API generates a SAS
for a file to be uploaded to Azure Blob Storage. Looks like the string is being wrapped in double quotes and this is creating a problem with the front end solution I'm using to upload files.
How can I return a string but make sure that it's not wrapped in double quotes?
This is the API controller:
public async Task<IActionResult> GetSAS(string blobUri, string _method)
{
if (string.IsNullOrEmpty(blobUri) || string.IsNullOrEmpty(_method))
return new StatusCodeResult(400);
// Get SAS
var sas = _fileServices.GetSAS(blobUri, _method);
return Ok(sas);
}