0

The following image will allow users to select only pdf files.

image

But, the problem is it would show "PDF FILES" as file description in the file dialog by default. What should I do to display my own custom name for my .mbxml files? I have taken the reference from the post Show custom text for applied file type filters on file dialog to upload particular category of files.

I want to rename the "custom files" (as shown in image1) to "Manifold dataFile" (as shown in image2) and remove the "ALL Files" text from image1 so that only "Manifold dataFile" is shown in the file selection dialog box and users can't select any other file other than .mbxml by selecting the "All Files" text.

image1

image2

Melebius
  • 4,692
  • 3
  • 32
  • 43
Jasleen Kaur
  • 39
  • 1
  • 1
  • 5
  • Can anyone please tell me the solution – Jasleen Kaur May 11 '18 at 06:09
  • Please do not [post screenshots of code](https://meta.stackoverflow.com/questions/285551/why-not-upload-images-of-code-on-so-when-asking-a-question). Paste the text directly to your question and apply code formatting (the `{}` icon). – Melebius Jun 05 '18 at 13:58
  • Possible duplicate of [ limit selectable files by extensions](https://stackoverflow.com/questions/5796537/input-type-file-limit-selectable-files-by-extensions) – Capricorn Jun 05 '18 at 14:20

0 Answers0