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

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

Participant ,
May 28, 2008 May 28, 2008
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" ?

TOPICS
Getting started
254
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
LEGEND ,
May 28, 2008 May 28, 2008
LATEST
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/
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
Resources