Skip to main content

i4w_uploadfile

Usage

This shortcode provides a simple mechanism for a subscriber to upload a file to his/her filebox in Keap and run event-based actions based on the outcome of the upload attempt.

Please note that these files, once uploaded, are not publicly available. They are available only to users (not contacts) within your Keap application.

[ELSE_uploadfile] conditional branching is NOT supported.

Shortcode nesting is NOT supported.

Parameters

ParameterDescriptionDefaultRequired
failmessageThe message to display if the upload failed for any reason.noneNo
successmessageThe message to display if the upload succeeded.noneNo
uploadlabelAn optional label to display before the file selection input field.noneNo
submit_btnText to display in the submit button.noneNo

Example

Basic usage:

Shortcode
[i4w_uploadfile]

With custom messages:

Shortcode
[i4w_uploadfile failmessage='The file could not be uploaded' successmessage='Great! The file was uploaded!']

With all options:

Shortcode
[i4w_uploadfile failmessage='The file could not be uploaded' successmessage='Great! The file was uploaded!' uploadlabel='File: ' submit_btn='Upload']

With event-based actions:

Shortcode
[i4w_uploadfile failmessage='The file could not be uploaded' successmessage='Great! The file was uploaded!' uploadlabel='File: ' submit_btn='Upload']
Display this text before the upload
[on_success]
[i4w_actionset actid='123' autorun='1']
[on_error]
[i4w_actionset actid='234' autorun='1']
[/i4w_uploadfile]