Versions Compared

Key

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

...

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

Thai

ฟิลด์อัปโหลดไฟล์ Amazon S3 นี้เป็นปลั๊กอินตัวอย่างเพื่อแสดงวิธีที่คุณสามารถพัฒนาปลั๊กอินเพื่อรวมเข้ากับบริการของบุคคลที่สามเช่นที่เก็บข้อมูล Amazon S3 ฟิลด์อัปโหลดไฟล์ Amazon S3 นี้เป็นการรวมกันของ Form Field Element PluginForm Store Binder Pluginและ Web Service Plugin ซึ่งมี 2 คลาส "AwsS3FileUpload" และ "AwsS3FileBinder"

AwsS3FileUpload class

Thai

AwsS3FileUpload คลาส

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 Plugin to provide link to download the files. This element set its store binder to "AwsS3FileBinder" to handle the file storing to Amazon S3.

Thai

คลาสนี้ขยายคลาส FileUpload ในผลิตภัณฑ์ Joget Workflow เพื่อให้เราสามารถใช้เทมเพลตคุณสมบัติและวิธีการบางอย่างในคลาส FileUpload อีกครั้ง นอกจากนี้ยังใช้ Web Service Plugin เพื่อให้ลิงก์สำหรับดาวน์โหลดไฟล์ องค์ประกอบนี้ตั้งค่าตัวยึดอุปกรณ์จัดเก็บเป็น "AwsS3FileBinder" เพื่อจัดการไฟล์ที่จัดเก็บเป็น Amazon S3

AwsS3FileBinder class

Thai

คลาส AwsS3FileBinder

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

Thai

คลาสนี้ใช้ปลั๊กอิน Form Store Binder Plugin เพื่ออัปโหลดไฟล์ไปยัง AWS S3 ในเหตุการณ์การจัดเก็บแบบฟอร์ม

Resources

Thai

ทรัพยากร

Source Code: amazon_s3_upload_field_src.zip

...

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

Thai

รหัสที่มา: amazon_s3_upload_field_src.zip

ปลั๊กอิน: aws_s3_upload_field-5.0.0.jar

ไฟล์การกำหนดค่า Amazon S3: awsS3.properties (วางไฟล์คุณสมบัตินี้ในโฟลเดอร์ wflow ของคุณ)


For Java 11:

Source Code: amazon_s3_upload_field_src_java11.zip

Pluginaws_s3_upload_field-7.0.0.jar 

Thai

สำหรับ Java 11:

รหัสที่มา: amazon_s3_upload_field_src_java11.zip

ปลั๊กอิน: aws_s3_upload_field-7.0.0.jar 

Screenshots

Thai

ภาพหน้าจอ

 

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

Thai

ในตัวสร้างฟอร์มเมื่อไฟล์การกำหนดค่า AWS S3 หายไป

In form builder, when there are error connecting to AWS S3 server.

Thai

ในตัวสร้างฟอร์มเมื่อมีข้อผิดพลาดในการเชื่อมต่อกับเซิร์ฟเวอร์ AWS S3