Place file in a typesafe manner if possible, place unsafely otherwise.
Place file in a typesafe manner if possible.
Apply the following steps for selecting the placeholder:
The main difference between
is how they behave in cases where it is not possilbe to place the
file respecting typesafety.
os.TYPESAFE will reject the operation.
os.TYPESAFE_IF_POSSIBLE will place the file anyway.
Not using TYPESAFE_IF_POSSIBLE, ignore .Accept rules.
Use TYPESAFE_IF_POSSIBLE, find accepting placeholder.
Use TYPESAFE_IF_POSSIBLE, when provided placeholder is not accepted, prefer the first accepting placeholder.
Use TYPESAFE_IF_POSSIBLE, provided placeholder is accepted.
Use TYPESAFE_IF_POSSIBLE, nothing accepted, fall back to using placeholder 0.
Use TYPESAFE_IF_POSSIBLE, nothing accepted, fall back to using provided placeholder.