Skip to main content
Inspiring
May 28, 2008
Question

the new cfimage tag - do I still use cffile to upload ?

  • May 28, 2008
  • 1 reply
  • 295 views
I need the ability for the user to browse for an image on his local computer and upload it to the coldfusion server. In addition, I need to:

a) resize it
b) rename it
c) watermark it

Do I still need to use cffile to initially upload the image to the server, or can I use cfimage to do this ?

If I DO need to still use cffile, do I just use the cffile "filefield" as my cfimage "source" ?

This topic has been closed for replies.

1 reply

Inspiring
May 29, 2008
1) yes, you still need to use cffile to facilitate file uploading
2) no, you use cffile.serverfile to get the uploaded file's name. the
filefield attribute in cffile tag only points to the form's file field
for 'uploading' the file. it does not contain the file's name on cf
server, it only contains a pointer for cf to a temp file that it has
created at uploading.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/