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

cfpop attachment

Guest
Apr 06, 2007 Apr 06, 2007

Copy link to clipboard

Copied

Hi is it possible to have cfpop automatically save attachments (which will be csv files) to a server folder, and then rename the filename?

if so how would i go about this?
TOPICS
Advanced techniques

Views

386

Translate

Translate

Report

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

correct answers 1 Correct answer

Deleted User
Apr 06, 2007 Apr 06, 2007
ok working

Votes

Translate

Translate
Engaged ,
Apr 06, 2007 Apr 06, 2007

Copy link to clipboard

Copied

You can use "attachmentpath" and set "generateUniqueFilenames" to YES

(action must be set to "GetAll")

http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFu...

Votes

Translate

Translate

Report

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
Guest
Apr 06, 2007 Apr 06, 2007

Copy link to clipboard

Copied

ok thanks but i need to rename the file to the user id number from a query how would i do that?

Votes

Translate

Translate

Report

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
Engaged ,
Apr 06, 2007 Apr 06, 2007

Copy link to clipboard

Copied

Use "queryname.attachmentfiles" as a variable to use alongside CFFILE.
"queryname" would be the name you assign to the CFPOP tag/POP query.

This will contain a list of the attachment files/locations ... you can loop through the list and use the CFFILE tag to rename it, if there is a file attached.

Votes

Translate

Translate

Report

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
Guest
Apr 06, 2007 Apr 06, 2007

Copy link to clipboard

Copied

LATEST
ok working

Votes

Translate

Translate

Report

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
Documentation