Options for large file (up to 100mb) upload directly to S3 and/or GCS for photos and videos

We are currently using Pega Mashup code to allow users to upload Media (photos and videos) up to 100mb in size to our Pega application. At the moment the application is temporarily storing an uploaded file in the clipboard then sending to a virus scanner to determine if clean or not. If clean it writes to S3 storage. If not, it is discarded.

I’m looking at ways to improve and possibly not having it land in Pega at all.

Would prefer that the uploader send directly to S3 (and later directly to GCS instead) and have the files land there.

Have out application just keep track of the names of the uploaded files. Then we can have the Virus scanning tools directly scan the files. Either have them land where they will be with no access or links to it until confirmed clean, or let them land in a separate bucket, scan them there, then move to the normal media storage and link to the files.

Looking at decoupling the virus scanning so the users can go on and use the application as soon as the file is uploaded. Then it will just be pending until scanned then activate the links so they can be used.

How are other handling media uploads and virus scanning? What scanning tools do you use? Any published patterns that match what we’re looking to do?

Any suggestions appreciated.

@RobertD16693255 Pega Infinity provides native virus scanning capabilities for file attachments in Web Messaging with Digital Messaging. When enabled, Digital Messaging Service scans file attachments for viruses as they are uploaded to the Web Messaging widget. If a virus is detected, the system automatically removes the file from the S3 bucket and does not deliver the file attachment to your chatbot or CSR in the chat session. Customers are informed that the system removed their file attachment. If no virus is detected, the system passes the file attachment along to the Pega Platform instance and deletes the attachment from the S3 bucket as usual. This approach allows for immediate user interaction with the application while the virus scanning process is decoupled and handled in the background. However, please note that this feature is specific to the Web Messaging with Digital Messaging service and may not be directly applicable to your use case.

:warning: This is a GenAI-powered tool. All generated answers require validation against the provided references.

_Virus scanning in Web Messsaging > Inbound message scanning (customer f

Native virus scanning in Web Messaging with Digital Messaging

What’s new in Digital Messaging > Native virus scanning for attachments

What’s New in Digital Messaging (Pega Platform) > Native virus scanning (August 9, 2023) { .section}