File input dont upload when set attr #7237
Unanswered
dominhnhien1997
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a class for Form
public class UploadFileForm { [FileUploadEditor] public string MyFile { get; set; } }
I used that class for a dialog like this:
`export class UploadFileDialog extends PropertyDialog<any, UploadFileDialogOptions> {
}}
`
but when I set attr for input, the file upload action was not performed. If I comment the line
Fluent(this.domNode).findFirst('input[type="file"]').attr('accept', '.pdf');
everything works as expected
I really don't understand what is causing this problem. Please help me.
Version serenity : 8.4.8
Beta Was this translation helpful? Give feedback.
All reactions