Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This AWS S3 Amazon S3 File Upload field is a sample plugin to showcase on how you can developer develop a plugin to integrate with third party service like AWS Amazon S3 storage. 

This AWS S3 Amazon S3 File Upload field is a combination of Form Field Element PluginForm Store Binder Plugin and Web Service Plugin implementation  implementations which contains 2 classes "AwsS3FileUpload" and "AwsS3FileBinder".

AwsS3FileUpload class

This class extends FileUpload class in the Joget Workflow product so that we can reused reuse the template, properties and some of the methods in FileUpload class. It also implements Web Service Plugin to provide link to download the files. This element set it its store binder to "AwsS3FileBinder" to handle the file storing to AWS Amazon S3.

AwsS3FileBinder class

This class implements Form Store Binder Plugin to upload file to the AWS S3 when in form storing event.

Resources

Source Code: amazon_s3_upload_field_src.zip

Plugin: aws_s3_upload_field-5.0.0.jar

AWS S3 Amazon S3 Configuration File: awsS3.properties  (put this properties file in your wflow folder)

...

Screenshots

 

In form builder, when the AWS S3 configuration file is missing.

...