Alagad Image Componet

Posted on 2007-08-01
Last Modified: 2013-12-24
i can not get Alagad Image Componet to read a file to upload path... any ideas? am i using it correctly?

upload form

<cfform action="add-images.cfm" enctype="multipart/form-data" method="post" class="formStyle1">
  <cfinput type="File" name="file1" /><br />
<input type="Submit" name="upload" value="upload">

read code

<!--- open the image to resize --->
<cfset myImage.readImage(file1) />


Element FILE1 is undefined in FORM.
The error occurred on line 39.
Question by:pigmentarts
    LVL 9

    Accepted Solution

    Maybe show us more of add-images.cfm ?

    if not...

    Turn on debugging to see all the variables  that are available to you... FORM, URL, CGI etc...

    This has got to be something simple...

    <!--- open the image to resize --->
    <cfset myImage.readImage(FORM.file1) />
    LVL 12

    Author Comment

    hi thanks, just found out that i need to upload the file first before i can do anything with it, its a shame becuase i wanted to resize the file before it was put on the server not the other way around :(

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
    Today, I was working on some optimization and spam-stopping techniques when I encountered Ben Nadel's post to reduce spam feature using Math ( While this method is not o…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now