Skip to main content
June 23, 2008
Question

How can I let users browse for a filename

  • June 23, 2008
  • 1 reply
  • 205 views
I'm working on an admin page, adding and editing menu items in a database driven menu system. To make it easier for system admins to create a link, I need to have a text input field with a browse button next to it. When the user clicks the button a standard browse window opens and they find their file. Here is where the catch comes. I don't want to upload the file, just grab the filename and put it in the text input field.

I feel like some combination of CF and Javascript should do that, but I can't find anything and my Javascript is at a fairly low level.

Can anyone give me a tip or actual code they may have worked on to accomplish a task similar to this?

Thanks,
    This topic has been closed for replies.

    1 reply

    Participating Frequently
    June 24, 2008
    Hi Grandpa_Loyd,

    I had some files of tests that made that.
    see if it help.
    http://www.tofinha.com.br/testes/seleciona_imagem_form.cfm
    The sources: http://www.tofinha.com.br/testes/selecionaImagens.zip

    don't repair in the code, because makes a time already :-D