Portlet Factory, Version 6.1.2


 

An indirect reference usage for a dynamic upload path

To create a dynamic upload path, where a user can enter a path to be used for the upload, you can build a model that provides a subfolder field This field should be a Text Input field with an onChange event (HTML Event Action) assigned to it. This action should set the subfolder path and re-display the page. When the page is re-displayed, the subfolder value will be picked up and used during the upload operation. Add a validity check to the input field to insure than no illegal characters are included in the path entry

The com.bowstreet.webapp.util.FileUpload.allowFileUpload method is used to set the subfolder.

Parent topic: File Upload builder


Library | Support |