1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    25
    Answers
    1
    Vote Rating
    0
    santosh.kumar is on a distinguished road

      0  

    Default Unanswered: filefield questions

    Unanswered: filefield questions


    Hi,

    I have few questions on filefield:

    1. How to make filefield editable? (to enter file path manually)
    2. When i select file from dialog... the path getting displayed is something like c:\fakepath\<filename>. How to display actual path instead of "fakepath" string?
    3. how to specify file filter option? eg. if i want to show only *.txt files in the dialog.

    Thanks
    Santosh

  2. #2
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,118
    Answers
    85
    Vote Rating
    30
    tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about

      0  

    Default


    1 From the docs: Because there is no secure cross-browser way to programmatically set the value of a file input, the standard Field setValue method is not implemented. The getValue method will return a value that is browser-dependent; some have just the file name, some have a full path, some use a fake path.

    I think it is not possible because of security. But making it editable you can set editable: true

    2. http://www.sencha.com/forum/showthre...on-file-upload

    3 Not possible with javascript. Mayby you can set the Accept property on the input element, but I give not much hope getting that working.

Thread Participants: 1