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

CFImage

Contributor ,
Nov 20, 2007 Nov 20, 2007

Copy link to clipboard

Copied

Dear all,

I need to create a module for user to upload an image file into our coldfusion server. But I need the image to be resized before it's saved/uploaded into our server.

Is it possible for user to pick the file (using <input type="file">) and let my module to resize it on the fly (memory level) and save the resized file into my server (one time uploading)?

From the given example by Adobe, the Source property is only applicable if we know the exact location, but not letting the file is picked by user (with <input type="file"> mechanism).

Looking forward for your replies.

Thanks in advance
Keiko
TOPICS
Advanced techniques

Views

251

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 ,
Nov 20, 2007 Nov 20, 2007

Copy link to clipboard

Copied

if you need to resize the image BEFORE uploading, then you will have to:
a) resize it using an image-editing application
or
b) employ some java applet or activeX control on your page, which your
users will have to download and install - i do not know of any to
suggest, though

CF = server-side; users (and users selecting images to upload) = client-side

if i were you, i would probably look into utilising the CF8's
DirectoryWatcher Gateway, as explained by Ray Camden in his blog:
http://www.coldfusionjedi.com/index.cfm/2007/10/29/DirectoryWatcher-and-ColdFusion-Image-Manipulatio...

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

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
Contributor ,
Nov 20, 2007 Nov 20, 2007

Copy link to clipboard

Copied

LATEST
Thanks Azadi for your reply. Really appreciate it.

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