question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fieldUpload not setting id attribute correctly

See original GitHub issue

Setting the id property in the schema for field type: "upload" results in markup that looks like:

<input id="getFieldID(schema)" 
     type="file"
     accept=".jpg,.jpeg,.png,.pdf" 
     required="required" class="form-control">

Comparing it to other core field files, it looks like in fieldUpload.vue the id prop is missing a colon, here.

Could be an easy/quick fix 😃

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
icebobcommented, Mar 9, 2018

Released in v2.2.1

1reaction
jewbetchacommented, Mar 8, 2018

I tried this, but ran into a multitude of babel/webpack errors. My project is on @babel 7.x and it looks like that and the associated plugins aren’t cooperating with VFG from git. Hopefully @icebob will want to release soon 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set required field value in lightning-file-upload
You can omit the record-id attribute when specifying file-field-name and file-field-value attributes. However, if you provide the record-id , ...
Read more >
File upload in ASP.NET Core 2 razor pages - Stack Overflow
Your property for the file input is named FileUpload but you have overridden the name attribute generated by the TagHelper and renamed it...
Read more >
required attribute not working for p:fileUpload when mode ...
Create a skinned simple and required fileUpload, then try to submit the form. 5) Sample XHTML. <p:fileUpload id="registryUpload" value="#{bean.
Read more >
lightning-file-upload - documentation - Salesforce Developers
To associate an uploaded file to a record, specify the record-id attribute. Uploaded files are available in Files Home under the Owned by...
Read more >
FileUpload Class (System.Web.UI.WebControls)
Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web server control....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found