IAssetFile ContentFileSize suddenly zero

Ralf Markus 1 Reputation point
2021-06-21T08:53:24.987+00:00

Hey, for some reason the content file size is zero after uploading an encoded file. It was working before April 2021, but not sure what happens afterwards. I didn't find anything in the release notes which explains this issue.

IAssetFile.ContentFileSize is zero after uploading an encoded file.

Any quick ideas what could cause this issue?

Azure Media Services
Azure Media Services
A group of Azure services that includes encoding, format conversion, on-demand streaming, content protection, and live streaming services.
312 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xavier Pouyat 591 Reputation points Microsoft Employee
    2021-06-21T13:25:50.227+00:00

    Hello,
    It looks like you are using REST v2. You should move to v3. In v3, files are managed as blobs by the Storage SDK. AMS does not provide anymore an asset file concept.

    You don't mention which SDK and code you are using to upload the content. I remember that some code is needed to update the size of the file after the upload (to update the metadata in AMS).

    0 comments No comments