How to use the Popup_Upload in 5.1

How to use the Popup_Upload in 5.1


In 5.1 there is a new Upload pattern supported by the Popup_Upload public screen and the associated Popup_Upload_GetFile action and UploadedFile structure.

How do I use this to pass binary content to a database table?

I tried it but can't figure out how it works, can anyone help me with this?

Thanks in advance,

Dick Dokter


This pattern was designed to be used in conjunction with the Popup_Editor. You should have a link to the Popup_Upload, setup a Popup_Editor block to that link, and in the OnNotify retrieve the binary with Popup_Upload_GetFile and save it to your database table.

If you drag an image to an entity, IntelliWarp will automatically create an entity to store a picture related to that entity, and when creating edit screens will use the Popup_Upload pattern automatically. You can use the generated edit screens as a reference.

Alternatively, I've attached a simpler example not bound to a picture entity.

Best Regards,
Gustavo Guerra