File upload component not working after upgrade to

  • 1
  • Problem
  • Updated 2 weeks ago
  • In Progress
We recently updated from Skuid 11.0.5 to latest. Mostly the update went smooth but we find that our File Upload components no longer work.

They have exactly the issue that we posted about four years ago here where - when used through a VisualForce page, the component does not accept the file. For a brief moment you can see the new file name but then it reverts back. When we use the page directly in Salesforce, everything works fine.

In that previous post (and others that I've found on this issue) the recommendation is to make a copy of the UploadImage Skuid page. We've done that, and made sure that the VisualForce page profile with the component has access to the copy and such.

Are there other steps that I'm missing here? Are there new steps we're supposed to take for the File Upload component under new versions of Skuid?

In case it's a clue we also notice that certain scripts being included by vendor.js are not being imported correctly when the page is included in VisualForce pages. Specifically, moment.js (see attached).



But other components on the page work fine, and saving changes to other fields works okay.

Thanks,

Bryan
Photo of Bryan Hermsen

Bryan Hermsen

  • 134 Points 100 badge 2x thumb

Posted 4 weeks ago

  • 1
Photo of Bryan Hermsen

Bryan Hermsen

  • 134 Points 100 badge 2x thumb
Any chance someone from Skuid tech support could help with this one if no one from the community is seeing it?

We continue to receive reports from users on that component not working.

Thanks!

Bryan
Photo of Khamla Phimmachack

Khamla Phimmachack, Official Rep

  • 1,976 Points 1k badge 2x thumb
Byan,

Are you able reproduce this problem on a simple page with the File Upload component? If so, would you mind sharing the XML with us so we can see what you see? Also, are you on 12.1.9?
Photo of Bryan Hermsen

Bryan Hermsen

  • 134 Points 100 badge 2x thumb
Hello Khamla,

Yes, I can still duplicate this issue when I remove everything except the file upload component. Here is a link to the XML.

And yes, we are on 12.1.9.

Thanks!

Bryan
Photo of Bryan Hermsen

Bryan Hermsen

  • 134 Points 100 badge 2x thumb
Hello Khamla,

I made a simpler page than the one above, where I also stripped out un-needed models and layout components. It has the same issue once embedded into a visualforce page:

<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="true" showheader="true">
    <models>
<model id="Chapter" limit="1" query="true" createrowifnonefound="false" datasource="salesforce" sobject="Group__c">
    <fields>
        <field id="Web_Image__c"/>
        <field id="Web_Image__r.Name"/>
        <field id="Web_Image__r.skuid__AttachmentId__c"/>
        <field id="Web_Image__r.Id"/>
        <field id="Web_Image__r.skuid__Url__c"/>
    </fields>
    <conditions>
        <condition type="param" field="Id" operator="=" enclosevalueinquotes="true" value="id"/>
    </conditions>
    <actions/>
</model>
</models>
    <components>
<file storeas="field" displayas="filename" uniqueid="sk-3EXH-423" datasource="salesforce" model="Chapter" field="Web_Image__r.skuid__AttachmentId__c" idfield="Web_Image__c" fieldtargetobjects="skuid__Image__c"/>
</components>
    <resources>
        <labels/>
        <javascript/>
        <css/>
        <actionsequences uniqueid="sk-3EWx-384"/>
    </resources>
    <styles>
        <styleitem type="background" bgtype="none"/>
    </styles>
</skuidpage>


Photo of Bryan Hermsen

Bryan Hermsen

  • 134 Points 100 badge 2x thumb
Hello Khamla,

I just wanted to follow up here and see if you guys had any updates.

Thanks!

Bryan