javascriptjqueryinternet-explorerfirefox

How to change "File Upload" dialog's Title in a browser?


Is it possible to change the title of "File Upload" dialogs in any common browser such as IE or FireFox?

enter image description here

enter image description here


Solution

  • Checking the documentation pages I cannot find such a thing... I guess this is not possible.

    In the Control types from the Forms section we find the input[type='file'] that is described as:

    file select

    This control type allows the user to select files so that their contents may be submitted with a form. The INPUT element is used to create a file select control.

    Then we check the Input elements and we find a list of the elements with different types that uses input:

    There is the file type too:

    file

    Creates a file select control. User agents may use the value of the value attribute as the initial file name.

    So, in conclusion this is unfortunately not possible.


    The alternatives you can choose are to use drag and drop on a popup that is opened inside of the HTML:

    -------------------------------------- <-- the full page
    |                                    |   
    |                                    |   
    |       |----------------| <------------ The popup
    |       | Your title     |           |   
    |       |----------------|           |   
    |       | Drag files here|           |   
    |       |----------------|           |   
    |                                    |   
    |                                    |   
    --------------------------------------