Publishing an artifact data file with an unknown extension fails early and tells you to set contentType.
What's wrong with this entry?
Publishing a data file with an artifact by path now fails up front if the file's extension has no known content type, and the error tells you to rename it to something recognised or list it under files in map form with an explicit contentType.
- The error text suggests
.jsonor.txtas known extensions. - Path resolution was reworked to try both the working directory and its real (symlink-resolved) path before computing the key the file is published under.
has no known content type for its extension \u2014 rename it to a known one (e.g. .json or .txt)
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.236
Artifact types (templates and starters), built end to end and off by default
Both mention type
-
v2.1.239
Bedrock streaming responses without a content-type no longer fail
Both mention content type