Additional upload data

This example shows how to send additional POST params with uploading.

    Code

    <!DOCTYPE html>
    <html>
        <head>
            <title>Revolvapp</title>
            <meta charset="utf-8">
    
            <!-- css -->
            <link rel="stylesheet" href="/your-folder/revolvapp.css" />
        </head>
        <body>
            <!-- element -->
            <div id="myemail"></div>
    
            <!-- data from inputs -->
            <input type="hidden" id="my-input-1" value="my-input-value-1">
            <input type="hidden" id="my-input-2" value="my-input-value-2">
    
            <!-- js -->
            <script src="/your-folder/revolvapp.js"></script>
    
            <!-- call -->
            <script>
            Revolvapp('#myemail', {
                editor: {
                    path: '/your-path-to-revolvapp-folder/',
                    template: '/your-path-to-template-file.html'
                },
                image: {
                    upload: '/my-backend-upload/',
                    data: {
                        id: 10,
                        elements: '#my-input-1, #my-input-2'
                    }
                }
            });
            </script>
        </body>
    </html>