how we can eliminate the Invalid multipart content type and file ending combination document ?

Certified Associate Developer

HI all, 

while uploading the document via upload file is there any option to check the Invalid multipart content type and file ending combination? if user uploading the multipart content  document  we have restrict the user not to upload the document..

Thanks In advance.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Have you enabled the setting in the Admin Console to validate that user-uploaded files match between their extension and their underlying file type?  As far as I know, that's the only option we have along these lines. 

    From the form design side, all you can do is validate (require or restrict) certain extensions, as in just the superficial file extension.

  • 0
    Certified Associate Developer
    in reply to Mike Schmitt

    HI Mike,

    we are allowing user to upload PDF fils but insdie pdf file it may contains PNG or JPG or invalid content so when we sending the documents to external system though the integration which have received from the user.

    while sending the document to external system via integration ,we are checking the below connector function to eliminate the multipart content value.

    a!httpFormPart(
    name: "multiparts",
    contentType: "auto-detect",
    value: todocument(documentId)
    )

    as per external system will  allow the if document is pdf then content type should be application/pdf  but above function we gives the Content-Type: application/x-tika-ooxml while sending to extenal system due to that reason those documents are not moving to  external system due to multipart content.

    to eliminate the those issues we thought to check the while user uploading files via upload file at initial time.is there any possibility to verify before uploading files?

    Thanks In advance

  • 0
    Certified Lead Developer
    in reply to suresh

    I'm unclear if you confirmed whether or not you've tried this setting.  Beyond this, it might be beyond the scope of Appian to check, beyond using extra functionality like a plug-in (as stefan mentions below).

  • 0
    Certified Lead Developer
    in reply to suresh

    You would have to implement a plugin to d0 this kind of file content sanitation.

Reply Children