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.

Add dynamic identifier on input type created by ng-file-upload directive.

See original GitHub issue

i have two separate upload button for angular-file-upload. They both create separate input elements at the bottom of the body. As they look alike ( cannot be distinguished ). I want to differentiate them for testing purpose (e2e test selenium webdriver) by passing optional paramater to the directive, but they are treated as string and not evaluated on the input element. I have used new doctype attribute. screenshot from 2015-11-27 12 29 30

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
danialfaridcommented, Nov 27, 2015

Feature added at version 10.0.3. If you specify an id for your element, the input type file will have that id prefixed with ngf-. So

<div id="myid" ngf-select>

will create

<input type="file"  id="ngf-myid" ...>
0reactions
vjurascommented, May 28, 2016

Here is separate issue #1529

Read more comments on GitHub >

github_iconTop Results From Across the Web

ng-file-upload not binding model to dynamically created HTML ...
I want to upload an image file from dynamically generated HTML form using ng-repeat. I am using ng-file-upload module to upload the single...
Read more >
Angular File Upload - Complete Guide
Everything that you need to know to build a fully functional custom file upload component in Angular.
Read more >
How to Implement File Uploading in Angular Reactive Forms
In this article, I'll walk you through the process of creating a reactive form that includes a file upload, along with the normal...
Read more >
How to have an input field with dynamic name fully working ...
I've tried to create a directive that somehow compile the dynamic name of the input, but without success. I don't know if this...
Read more >
File upload param type when using dynamic Web API ...
I'm using the ng-file-upload directive ... matthewosullivan created 8 years ago ... Content-Disposition: form-data; name="file"; ...
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