Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

configure upload file

Engaged ,
Sep 05, 2013 Sep 05, 2013

I use following code to have upload file contorols on the form.

I has a button which has caption "choose file" on the left and have a label to show file name when user select the file.

I want to have Browse caption on the button and to have the button on the right side and to have a text box to store file name text.

I would like to know if it possible to use any property or attibute to configure, if not, then the only solution I need to use JavaScript to configure my controls.

Your information and help is great appreciated,

Regards,

Iccsi,

<cfif isdefined("form.submit_upload")>

<cffile action="UPLOAD" filefield="file_path" destination="Mypath" nameconflict="MAKEUNIQUE">

File Uploaded!

</cfif>

<cfform action="fileupload1.cfm" method="POST" name="frmupload" enctype="multipart/form-data">

<cfinput type="file" name="file_path" id="Browser" value="Browser">

<br />

<cfinput type="submit" name="submit_upload" value="upload">

</cfform>

342
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources