question

RalfMarkus-4987 avatar image
0 Votes"
RalfMarkus-4987 asked XavierPouyat-MSFT answered

IAssetFile ContentFileSize suddenly zero

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

XavierPouyat-MSFT avatar image
0 Votes"
XavierPouyat-MSFT answered

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).

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.