This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | <input type="file" accept=".pdf" /> incorrectly gives error | ||
---|---|---|---|
Product: | web | Reporter: | terje7601 |
Component: | HTML Editor | Assignee: | Milutin Kristofic <mkristofic> |
Status: | REOPENED --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.2 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
terje7601
2016-06-13 13:32:50 UTC
Hi, shouldn't it be like this: <input type="file" accept="application/pdf" /> ? Yes, that's also valid, but ".pdf" is equally valid. Quoting from the URL in the first comment: If specified, the attribute must consist of a set of comma-separated tokens, each of which must be an ASCII case-insensitive match for one of the following: The string audio/* Indicates that sound files are accepted. The string video/* Indicates that video files are accepted. The string image/* Indicates that image files are accepted. A valid MIME type with no parameters Indicates that files of the specified type are accepted. A string whose first character is a "." (U+002E) character Indicates that files with the specified file extension are accepted. Ok, I tested this on https://html5.validator.nu/ which we are using for validating html in Netbeans. I will find out why it is not accepting in Netbeans. |