@cdmx/wappler_ac_s3_upload
v0.3.14
Published
App Connect module for S3 Upload.
Downloads
296
Maintainers
Readme
��#�#�#�#� �M�a�i�n�t�a�i�n�e�d� �b�y�:� �R�o�n�e�y� �D�s�i�l�v�a�
�
�
�
�#�#� �C�u�s�t�o�m� �S�3� �U�p�l�o�a�d� �C�o�n�t�r�o�l�
�
�T�h�i�s� �i�s� �a� �c�u�s�t�o�m� �S�3� �u�p�l�o�a�d� �c�o�m�p�o�n�e�n�t� �d�e�s�i�g�n�e�d� �t�o� �g�i�v�e� �m�o�r�e� �f�e�a�t�u�r�e�s� �t�o� �S�3� �A�C� �m�o�d�u�l�e� �w�h�e�n� �u�p�l�o�a�d�i�n�g� �f�i�l�e�s�.�
�
�
�
�#�#� �S�3� �U�p�l�o�a�d� �C�o�n�t�r�o�l� �P�r�o�p�e�r�t�i�e�s�:� �
�
�P�r�o�p�e�r�t�i�e�s� �f�o�r� �c�o�n�f�i�g�u�r�i�n�g� �t�h�e� �b�e�h�a�v�i�o�r� �a�n�d� �a�p�p�e�a�r�a�n�c�e� �o�f� �t�h�e� �u�p�l�o�a�d� �c�o�n�t�r�o�l�.�
�
� � �-� ���I�D���:� �I�d�e�n�t�i�f�i�e�r� �f�o�r� �t�h�e� �u�p�l�o�a�d� �c�o�n�t�r�o�l�.�
�
� � �-� ���C�l�a�s�s���:� �C�S�S� �c�l�a�s�s� �f�o�r� �s�t�y�l�i�n�g� �p�u�r�p�o�s�e�s�.�
�
� � �-� ���U�r�l���:� �W�a�p�p�l�e�r� �A�P�I� �e�n�d�p�o�i�n�t� �(�P�O�S�T�)� �h�a�v�i�n�g� �t�h�e� �S�i�g�n�e�d� �U�p�l�o�a�d� �m�o�d�u�l�e� �r�e�t�u�r�n�i�n�g� �"�u�r�l�"� �a�s� �r�e�s�p�o�n�s�e�.�
�
� � �-� ���A�c�c�e�p�t���:� �A�l�l�o�w�e�d� �f�i�l�e� �t�y�p�e�s�/�e�x�t�e�n�s�i�o�n�s� �f�o�r� �u�p�l�o�a�d�.�
�
� � �-� ���V�a�l�i�d�a�t�i�o�n� �M�e�s�s�a�g�e���:� �M�e�s�s�a�g�e� �d�i�s�p�l�a�y�e�d� �w�h�e�n� �f�i�l�e� �t�y�p�e� �v�a�l�i�d�a�t�i�o�n� �f�a�i�l�s�.�
�
� � �-� ���F�i�l�e� �S�i�z�e� �L�i�m�i�t���:� �F�i�l�e� �s�i�z�e� �l�i�m�i�t� �i�n� �b�y�t�e�s�.�
�
� � �-� ���A�u�t�o� �U�p�l�o�a�d���:� �O�p�t�i�o�n� �t�o� �a�u�t�o�m�a�t�i�c�a�l�l�y� �u�p�l�o�a�d� �f�i�l�e�s� �a�f�t�e�r� �s�e�l�e�c�t�i�o�n�.�
�
� � �-� ���C�S�V� �O�p�t�i�o�n�s���:� �A�d�d�i�t�i�o�n�a�l� �p�r�o�p�e�r�t�i�e�s� �s�p�e�c�i�f�i�c�a�l�l�y� �f�o�r� �h�a�n�d�l�i�n�g� �C�S�V� �f�i�l�e�s�.�
�
� � �-� ���C�S�V� �R�o�w� �L�i�m�i�t���:� �M�a�x�i�m�u�m� �n�u�m�b�e�r� �o�f� �r�o�w�s� �a�l�l�o�w�e�d� �i�n� �a� �C�S�V� �f�i�l�e�.�
�
� � �-� ���C�S�V� �L�i�m�i�t� �V�a�l�i�d�a�t�i�o�n���:� �V�a�l�i�d�a�t�i�o�n� �m�e�s�s�a�g�e� �d�i�s�p�l�a�y�e�d� �w�h�e�n� �t�h�e� �C�S�V� �r�o�w� �l�i�m�i�t� �i�s� �e�x�c�e�e�d�e�d�.�
�
� � �-� ���C�S�V� �N�o� �R�e�c�o�r�d�s� �V�a�l�i�d�a�t�i�o�n���:� �V�a�l�i�d�a�t�i�o�n� �m�e�s�s�a�g�e� �d�i�s�p�l�a�y�e�d� �w�h�e�n� �a� �C�S�V� �f�i�l�e� �h�a�s� �n�o� �r�e�c�o�r�d�s�.�
�
�
�
�#�#� �A�c�t�i�o�n�s�
�
�-� ���A�b�o�r�t���:� �A�c�t�i�o�n� �t�o� �a�b�o�r�t� �t�h�e� �u�p�l�o�a�d� �p�r�o�c�e�s�s�.�
�
�-� ���R�e�s�e�t���:� �A�c�t�i�o�n� �t�o� �r�e�s�e�t� �t�h�e� �u�p�l�o�a�d� �c�o�n�t�r�o�l�.�
�
�-� ���S�e�l�e�c�t���:� �A�c�t�i�o�n� �t�o� �s�e�l�e�c�t� �a� �f�i�l�e� �f�o�r� �u�p�l�o�a�d�.�
�
�-� ���U�p�l�o�a�d���:� �A�c�t�i�o�n� �t�o� �i�n�i�t�i�a�t�e� �t�h�e� �f�i�l�e� �u�p�l�o�a�d� �p�r�o�c�e�s�s�.�
�
�
�
�
�
�#�#�#� �C�S�V� �S�c�h�e�m�a� �V�a�l�i�d�a�t�i�o�n�
�
�
�
�T�h�e� �f�o�l�l�o�w�i�n�g� �J�a�v�a�S�c�r�i�p�t� �c�o�d�e� �s�n�i�p�p�e�t� �d�e�f�i�n�e�s� �t�h�e� �s�c�h�e�m�a� �u�s�e�d� �f�o�r� �v�a�l�i�d�a�t�i�n�g� �C�S�V� �f�i�l�e�s�.� �I�f� �u�s�i�n�g�,� �i�t� �n�e�e�d�s� �t�o� �b�e� �d�e�f�i�n�e�d� �o�n� �t�h�e� �p�a�g�e� �o�r� �a�c�c�e�s�s�i�b�l�e� �t�o� �t�h�e� �p�a�g�e�:�
�
�
�
��
��h�t�m�l�
�
�<�s�c�r�i�p�t�>�
�
� � �f�u�n�c�t�i�o�n� �i�s�E�m�a�i�l�V�a�l�i�d�(�e�m�a�i�l�)� �{�
�
� � � � �/�/� �R�e�g�u�l�a�r� �e�x�p�r�e�s�s�i�o�n� �t�o� �v�a�l�i�d�a�t�e� �e�m�a�i�l�
�
� � � � �c�o�n�s�t� �e�m�a�i�l�R�e�g�e�x� �=� �/�^�[�^�\�s�@�]�+�@�[�^�\�s�@�]�+�\�.�[�^�\�s�@�]�+�$�/�;�
�
� � � � �r�e�t�u�r�n� �e�m�a�i�l�R�e�g�e�x�.�t�e�s�t�(�e�m�a�i�l�)�;�
�
� � �}�
�
�
�
� � �l�e�t� �v�a�l�_�c�s�v�_�s�c�h�e�m�a� �=� �{�
�
� � � � � � �h�e�a�d�e�r�s�:� �[�
�
� � � � � � � � �{�
�
� � � � � � � � � � �n�a�m�e�:� �'�F�i�r�s�t� �N�a�m�e�'�,�
�
� � � � � � � � � � �r�e�q�u�i�r�e�d�:� �t�r�u�e�,�
�
� � � � � � � � � � �r�e�q�u�i�r�e�d�E�r�r�o�r�:� �f�u�n�c�t�i�o�n� �(�h�e�a�d�e�r�N�a�m�e�,� �r�o�w�N�u�m�b�e�r�,� �c�o�l�u�m�n�N�u�m�b�e�r�)� �{�
�
� � � � � � � � � � � � �r�e�t�u�r�n� �
�$�{�h�e�a�d�e�r�N�a�m�e�}� �i�s� �r�e�q�u�i�r�e�d� �i�n� �t�h�e� �$�{�r�o�w�N�u�m�b�e�r�}� �r�o�w� �/� �$�{�c�o�l�u�m�n�N�u�m�b�e�r�}� �c�o�l�u�m�n��
�
� � � � � � � � � � �}�
�
� � � � � � � � �}�,�
�
� � � � � � � � �{�
�
� � � � � � � � � � �n�a�m�e�:� �'�L�a�s�t� �N�a�m�e�'�,�
�
� � � � � � � � � � �r�e�q�u�i�r�e�d�:� �t�r�u�e�,�
�
� � � � � � � � � � �r�e�q�u�i�r�e�d�E�r�r�o�r�:� �f�u�n�c�t�i�o�n� �(�h�e�a�d�e�r�N�a�m�e�,� �r�o�w�N�u�m�b�e�r�,� �c�o�l�u�m�n�N�u�m�b�e�r�)� �{�
�
� � � � � � � � � � � � �r�e�t�u�r�n� �
�$�{�h�e�a�d�e�r�N�a�m�e�}� �i�s� �r�e�q�u�i�r�e�d� �i�n� �t�h�e� �$�{�r�o�w�N�u�m�b�e�r�}� �r�o�w� �/� �$�{�c�o�l�u�m�n�N�u�m�b�e�r�}� �c�o�l�u�m�n��
�
� � � � � � � � � � �}�
�
� � � � � � � � �}�,�
�
� � � � � � � � �{�
�
� � � � � � � � � � �n�a�m�e�:� �'�E�m�a�i�l�'�,�
�
� � � � � � � � � � �r�e�q�u�i�r�e�d�:� �f�a�l�s�e�,�
�
� � � � � � � � � � �v�a�l�i�d�a�t�e�:� �f�u�n�c�t�i�o�n� �(�e�m�a�i�l�)� �{�
�
� � � � � � � � � � � � �r�e�t�u�r�n� �i�s�E�m�a�i�l�V�a�l�i�d�(�e�m�a�i�l�)�
�
� � � � � � � � � � �}�,�
�
� � � � � � � � � � �v�a�l�i�d�a�t�e�E�r�r�o�r�:� �f�u�n�c�t�i�o�n� �(�h�e�a�d�e�r�N�a�m�e�,� �r�o�w�N�u�m�b�e�r�,� �c�o�l�u�m�n�N�u�m�b�e�r�)� �{�
�
� � � � � � � � � � � � �r�e�t�u�r�n� �
�$�{�h�e�a�d�e�r�N�a�m�e�}� �i�s� �n�o�t� �v�a�l�i�d� �i�n� �t�h�e� �$�{�r�o�w�N�u�m�b�e�r�}� �r�o�w� �/� �$�{�c�o�l�u�m�n�N�u�m�b�e�r�}� �c�o�l�u�m�n�`�
�
� � � � � � � � � � �}�
�
� � � � � � � � �}�
�
� � � � � � �]�
�
� � � � �}�
�
�<�/�s�c�r�i�p�t�>�
�
�