Code Snippets

  

ColdFusion Source Code


Welcome to Dream.In.Code
Click Here
Getting Help is Easy!

Join 117,126 Programmers for FREE! Ask your question and get quick answers from experts. There are 2,646 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!




Upload file

upload file

Submitted By: wiredwizard
Actions:
Rating:
Views: 4,332

Language: ColdFusion

Last Modified: May 9, 2005
Instructions: upload file change filefield to your form
and destination

PS dont forget to change form type

Snippet


  1. <cfif form.MYIMAGE gt "">
  2.      <cffile action = "upload"
  3.      fileField = "MYIMAGE"
  4.      Destination="c:\inetpub\wwwroot\myDirectory\assets\"
  5.      nameConflict = "MakeUnique"
  6.      Accept="image/*">
  7.      <cfset MYIMAGE = cffile.serverfile>
  8. </cfif>

Copy & Paste


Comments


There are currently no comments for this snippet. Be the first to comment!

Add comment


You must be registered and logged on to </dream.in.code> to leave comments.





Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month