0.3.11 • Published 2 years ago

@cdmx/wappler_ac_s3_upload v0.3.11

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

��#### Maintained by: Roney Dsilva ## Custom S3 Upload Control This is a custom S3 upload component designed to give more features to S3 AC module when uploading files. ## S3 Upload Control Properties: Properties for configuring the behavior and appearance of the upload control. - ID: Identifier for the upload control. - Class: CSS class for styling purposes. - Url: Wappler API endpoint (POST) having put file from the custom s3 upload. - Input name: Input name for the input tag and to send as post parameter name for the file, default is s3_upload. - Accept: Allowed file types/extensions for upload. - Validation Url: Wappler API endpoint to validate file, (Sends the file in request).Leave blank if you don't want server-side validation. - Validation Message: Message displayed when file type validation fails. - File Size Limit: File size limit in bytes. - Auto Upload: Option to automatically upload files after selection. - CSV Options: Additional properties specifically for handling CSV files. - CSV Row Limit: Maximum number of rows allowed in a CSV file. - CSV Limit Validation: Validation message displayed when the CSV row limit is exceeded. - CSV No Records Validation: Validation message displayed when a CSV file has no records. ## Actions - Abort: Action to abort the upload process. - Reset: Action to reset the upload control. - Select: Action to select a file for upload. - Upload: Action to initiate the file upload process. ### CSV Schema Validation The following JavaScript code snippet defines the schema used for validating CSV files. If using, it needs to be defined on the page or accessible to the page: html <script> function isEmailValid(email) { // Regular expression to validate email const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; return emailRegex.test(email); } let val_csv_schema = { headers: [ { name: 'First Name', required: true, requiredError: function (headerName, rowNumber, columnNumber) { return ${headerName} is required in the ${rowNumber} row / ${columnNumber} column } }, { name: 'Last Name', required: true, requiredError: function (headerName, rowNumber, columnNumber) { return ${headerName} is required in the ${rowNumber} row / ${columnNumber} column } }, { name: 'Email', required: false, validate: function (email) { return isEmailValid(email) }, validateError: function (headerName, rowNumber, columnNumber) { return ${headerName} is not valid in the ${rowNumber} row / ${columnNumber} column` } } ] } </script>

0.4.9

10 months ago

0.4.8

10 months ago

0.3.15

1 year ago

0.4.5

10 months ago

0.4.4

11 months ago

0.4.7

10 months ago

0.4.6

10 months ago

0.4.1

11 months ago

0.4.0

11 months ago

0.4.3

11 months ago

0.4.2

11 months ago

0.3.9

2 years ago

0.3.14

2 years ago

0.3.13

2 years ago

0.3.12

2 years ago

0.3.11

2 years ago

0.3.10

2 years ago

0.3.0

2 years ago

0.3.6

2 years ago

0.2.7

2 years ago

0.3.5

2 years ago

0.2.6

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.2.8

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.9

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.4

2 years ago

0.1.5

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.3

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago