Versions Compared

Key

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

Amazon  S3文件上传字段是一个示例插件,用于展示如何开发插件以与Amazon S3存储等第三方服务集成。 

Amazon  S3文件上传字段是 

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

This Amazon S3 File Upload field is a combination of 表单字段元素插件Form Store Binder Plugin and Web Service 插件 implementations which contains 2 classes "AwsS3FileUpload" and "AwsS3FileBinder". 实现的组合,包含2个类“ AwsS3FileUpload ”和“ AwsS3FileBinder ”。

AwsS3FileUpload class

This class extends FileUpload class in the Joget Workflow product so that we can reuse the template, properties and some of the methods in FileUpload class. It also implements Web Service 插件 to provide link to download the files. This element set its store binder to "AwsS3FileBinder" to handle the file storing to Amazon S3.这个类扩展了Joget Workflow产品中的FileUpload类,以便我们可以在FileUpload类中重用模板,属性和一些方法。它还实现了  Web服务插件  来提供下载文件的链接。此元素将其存储绑定器设置为“ AwsS3FileBinder ”以处理存储到Amazon S3的文件。

AwsS3FileBinder class

This class implements 该类实现了 Form Store Binder Plugin to upload file to the AWS S3 in form storing event.

Resources

 将文件上传到AWS S3中的表单存储事件中。

资源

源码:Source Code: amazon_s3_upload_field_src.zip

Plugin插件aws_s3_upload_field-5.0.0.jar

Amazon S3 Configuration File: Amazon S3配置文件 :  awsS3.properties  (put this properties file in your wflow folder)

...

截图

 

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

Image Removed

在表单构建器中,当AWS S3配置文件丢失时。

Image Added

在表单构建器中,当连接到AWS S3服务器时出现错误。In form builder, when there are error connecting to AWS S3 server.