Dynamic file definition that derives validation rules from the uploaded file itself.
Unlike StaticFileDef, this is an invokable function that receives the
uploaded IHttpFile and returns a StaticFileDef with validation
rules tailored to that specific file. Use this when constraints (such as
allowed content type or maximum size) must be computed at runtime based on
the file's properties.
Dynamic file definition that derives validation rules from the uploaded file itself.
Unlike StaticFileDef, this is an invokable function that receives the uploaded IHttpFile and returns a StaticFileDef with validation rules tailored to that specific file. Use this when constraints (such as allowed content type or maximum size) must be computed at runtime based on the file's properties.