Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssetFile.Name max length is wrong #193

Open
chamelGenetec opened this issue Dec 18, 2017 · 1 comment
Open

AssetFile.Name max length is wrong #193

chamelGenetec opened this issue Dec 18, 2017 · 1 comment

Comments

@chamelGenetec
Copy link

In the online documentation, it says the max length is 260 but I get an error saying the max length is 248.
Online doc : https://docs.microsoft.com/en-us/azure/media-services/media-services-dotnet-upload-files

Call : IAssetFile assetFile = await asset.AssetFiles.CreateAsync(resource.Name, CancellationToken.None);

Exception : "An error occurred while processing this request."

InnerException : "<m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"><m:code /><m:message xml:lang="en-US">AssetFile.Name length cannot exceed 248 characters</m:message></m:error>"

@chamelGenetec
Copy link
Author

It turns out the max length is indeed 260 but it's not the 'file name' that's 260 but the full path + filename
Ex : C:\user\filename.jpg

I think the online documention needs to make this clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant