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

Help Me, I am Lazy

LEGEND ,
Dec 30, 2006 Dec 30, 2006

Copy link to clipboard

Copied

I redoing a rescue web site and they have about 3000 images (user submitted)
on the site. I want to make the web site dynamic (since it is currently
static) and I need to input the names of the images into the database. Is
there ANY way to read the names of the images in the folder and output a CSV
list that I can then loop into a database using CFHTTP?

Thanks!


TOPICS
Advanced techniques

Views

268

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
Explorer ,
Dec 30, 2006 Dec 30, 2006

Copy link to clipboard

Copied

cfdirectory will give you all the files in a folder. Loop through them and insert them directly in the database. no need for csv of cfhhtp

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
LEGEND ,
Dec 30, 2006 Dec 30, 2006

Copy link to clipboard

Copied

You are a god (small 'g') 🙂


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
LEGEND ,
Dec 30, 2006 Dec 30, 2006

Copy link to clipboard

Copied

What is the output name of the list created by the cfdirectory?
What can I use as the value to be inserted into the database from the list
created by cfdirectory?


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
LEGEND ,
Dec 30, 2006 Dec 30, 2006

Copy link to clipboard

Copied

LATEST
Nevermind, I did a cfdump to get all the variables.


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