Skip navigation
Currently Being Moderated

configure upload file

Sep 5, 2013 7:06 PM

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,






<cfif isdefined("form.submit_upload")>

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

File Uploaded!




<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">





More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points