Advanced Tutorial

Here you will find videos on the more advanced features within the <form.io> platform.

OAuth

Learn how to easily implement OAuth into your application in just 5 easy minutes.

S3 Bucket and File Upload

Learn how to set up an Amazon S3 bucket and integrate that within Form.io’s File Upload system.

Here is the code for adding the bucket policy within your Amazon IAM account

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "UploadFile",
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::XXXXXX:user/UploadUser"
            },
            "Action": [
                "s3:GetObject",
                "s3:PutObjectAcl",
                "s3:PutObject"
            ],
            "Resource": "arn:aws:s3:::formio-upload/*"
        },
        {
            "Sid": "crossdomainAccess",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::formio-upload/crossdomain.xml"
        }
    ]
}

CORS configuration code

<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
    <CORSRule>
        <AllowedOrigin>*</AllowedOrigin>
        <AllowedMethod>POST</AllowedMethod>
        <AllowedMethod>GET</AllowedMethod>
        <AllowedMethod>HEAD</AllowedMethod>
        <MaxAgeSeconds>3000</MaxAgeSeconds>
        <AllowedHeader>*</AllowedHeader>
    </CORSRule>
</CORSConfiguration>

Dynamic Role Assignment

Learn how dynamically assign roles with authentication and permissions.

Submission Resource Access

Learn how to use assign permissions based on Resource assignment