Hi, With the enclosed HTML inside form , i am able to upload a file to googledrive using backend api
but when i incorporate same html in camunda 8 form with html view upload button is not visible.below is the camunda form json : {
“components”: [
{
“type”: “html”,
“id”: “fileUploadForm”,
“label”: “File Upload”,
“content”: “\n<html lang="en">\n\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n File Upload\n \n .container {\n margin: 20px;\n padding: 10px;\n border: 2px solid #ddd;\n border-radius: 8px;\n background-color: #f9f9f9;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n }\n input[type="file"] {\n margin: 10px 0;\n }\n button {\n margin-top: 20px;\n padding: 15px 25px;\n background-color: #007bff;\n color: #fff;\n border: none;\n border-radius: 5px;\n cursor: pointer;\n font-size: 18px;\n transition: background-color 0.3s ease;\n }\n button:hover {\n background-color: #0056b3;\n }\n .hidden {\n display: none;\n }\n \n\n\n <div class="container">\n <form id="fileUploadForm" method="post" enctype="multipart/form-data">\n <label for="fileInput">Select File:\n <input type="file" id="fileInput" name="fileInput" />\n <div id="fileInfo" class="hidden">\n Selected File: <span id="fileName">\n \n \n \n \n\n”
}
],
“type”: “default”,
“id”: “Form_FileUpload”
}
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.