LiveUploadAccept
trait LiveUploadAcceptDeclares which files a browser may select for an upload.
Filters are rendered into the HTML accept attribute and checked during server preflight using
the file name and media type reported by the browser. Both values are client-controlled, so an
accept policy is a usability and early-validation mechanism, not a security boundary. Validate
the actual content before trusting or publishing an upload.
Exported from scalive.upload.LiveUploadAccept. View source (scalive/api/src/scalive/upload/LiveUpload.scala:60-67)
Methods1
toHtmlValue
def toHtmlValue: StringRenders this policy in the comma-separated form expected by an HTML accept attribute.
Any renders as the HTML wildcard for all media types.
Exported from scalive.upload.LiveUploadAccept.toHtmlValue. View source (scalive/api/src/scalive/upload/LiveUpload.scala:67-67)