?
Solved

Alagad Image Componet

Posted on 2007-08-01
2
Medium Priority
?
214 Views
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">
</cfform>




read code

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


error

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

Accepted Solution

by:
Andrew Maurer earned 2000 total points
ID: 19614484
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...

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

Author Comment

by:pigmentarts
ID: 19615291
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 :(
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

864 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