Skip to content

Input file support, file-path text doesn't update with ng-model #227

@degs098

Description

@degs098

Hi everyone.

I'm trying to update the file-path value with an ng-model, but it doesn't work.

<div class="file-field input-field"> <div class="btn blue darken-1"> <span>Adjuntar</span> <!-- Lectura Adjunta pregunta --> <input type="file" id="lecturaAdjuntaPregunta" ng-model="lecturaAdjuntaPregunta" class="hide" ng-disabled="lecturaCustomPregunta.length > 0" ng-file-on-change="adjuntarLecturaPregunta"> </div> <div class="file-path-wrapper"> <input type="text" id="lecturaAdjuntaTitle" ng-model="lecturaAdjuntaTitle" class="file-path validate"> </div> </div>

I'm trying to update the input file value from the controller and his file-path with the ng-model lecturaAdjuntaTitle.

The input file updates well with a directive that I made called ng-file-on-change, but the input text where the file-path has to be, doesn't get update.

Can you help us with this issue please? You may be able to add support for the input file for a more recent version of angular materialize.

Thank you very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions