function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
brijender singh rathore 16brijender singh rathore 16 

Public Page: Lightning Upload not attaching documents

We are working in lightning and created a flow to upload files. when we are calling the flow in visualforce page and using the page on a public website, its upload file functionality is not working on public website page. (we can select the file by clicking on upload files but upload functionality not working).Can anyone suggest me how to resolve it or is it a known issue?

User-added image


Lightning App - AutomationPublicFormsCompApp.app
 
<aura:application access="Global" extends="ltng:outApp" implements="ltng:allowGuestAccess">
    <aura:dependency resource="lightning:flow"/>
</aura:application>


VF page
 
<apex:page showHeader="false" sidebar="false">
  <head>
    <apex:includeLightning />
  </head>
  <body class="slds-scope">
    <div style="margin-left: 100px;margin-right: 280px;">
      <apex:image url="{!$Resource.Pre_employ_logo}" Style="width: 200px;"/>
      <div id="flowContainer" />
      <div id="lightning" />
      <div Style="width: 330px; margin-left: 315px; height: 60px;"><h1> © 2019 Pre-employ.com, Inc. All Rights Reserved.</h1></div>
    </div>
    <script type="text/javascript">
      var url = window.location.toString();
      var fields = url.split('=');
      var vTicketID = fields[1];
      if(vTicketID.includes('&')) {
        vTicketID = vTicketID.split('&');
        vTicketID = vTicketID[0];
      }
      var inputVariables = [
          { name : "varTicketID", type : "String", value: vTicketID }
      ];
      var statusChange = function (event) {
        if(event.getParam("status") == "FINISHED") {
          var outputVariables = event.getParam("outputVariables");
          var key;
          for(key in outputVariables) {
            if(outputVariables[key].name == "myOutput") {}
          }
        }
      };
      $Lightning.use("c:AutomationPublicFormsCompApp", function() {
        $Lightning.createComponent("lightning:flow", {"onstatuschange":statusChange}, "flowContainer",
          function (component) {
            component.startFlow("Automation_Test_Flow_Public_Forms", inputVariables);
          }
        );
      });
    </script>
  </body>
</apex:page>