Query on File Size Limit

While creating the File Upload function in ui, may I know if there is anyway to SET PARTICULAR LIMIT to the size of file being upload?

Thanks.

OriginalPostID-233969

  Discussion posts and replies are publicly visible

Parents
  • Hi there,

    There's a small hack that allows you to access the temporary document uploaded and do validation on it. It involves having a "fake" SAIL component with the variable, please find below an example:

    = with(
    local!doc: todocument(55),
    local!docSize: a!fileUploadField(
    value: local!doc
    ).uploadedDocumentSize,
    local!tempSize
    )

    You can use this local variable to perform validation as usual.
    Hope that is useful.
Reply
  • Hi there,

    There's a small hack that allows you to access the temporary document uploaded and do validation on it. It involves having a "fake" SAIL component with the variable, please find below an example:

    = with(
    local!doc: todocument(55),
    local!docSize: a!fileUploadField(
    value: local!doc
    ).uploadedDocumentSize,
    local!tempSize
    )

    You can use this local variable to perform validation as usual.
    Hope that is useful.
Children
No Data