Chat LIVE With Programming Experts! There Are 23 Online Right Now...

 

Code Snippets

  

ColdFusion Source Code


Welcome to Dream.In.Code
Become an Expert!

Join 244,278 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,168 people online right now. Registration is fast and FREE... Join Now!





Upload file

upload file

Submitted By: wiredwizard
Actions:
Rating:
Views: 5,406

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!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month