Solved

Image Upload

Posted on 2003-11-18
3
174 Views
Last Modified: 2013-12-24
Hi all

I recieved a response from anandkp with regards to my last question which answered the question I posted. My problem is I didnt mention that code from the posting page, only the action page.

At present I am only using <input type="file" name="Image"> on the post page as opposed to cffile. The code uses the filefield from the post page but that is only present in cffile and not input type=file. Which cffile method would I use to select an image so it can be passed to the action page to be edited please?

Or a way to get round it with input type="file" would be appreciated.

Many thanks
0
Comment
Question by:saffcossie
3 Comments
 
LVL 17

Accepted Solution

by:
anandkp earned 125 total points
ID: 9776892
nope - u dont need CFFILE on the posting page

the code i gave u earlier wld allow u to upload the image & save it on the server - with appropriate entries in the DB.

for allowing the user to select a file to be uploaded .. just have a form as simple as the one given below :

<TABLE>
      <FORM NAME="frm" ACTION="upload.cfm" METHOD="post" ENCTYPE="multipart/form-data">
            <TR>
                  <TD><INPUT type="file" NAME="imgfield"></TD>
            </TR>
            <TR>
                  <TD><INPUT type="submit" NAME="subme"></TD>
            </TR>
      </FORM>
</TABLE>

K'Rgds
Anand

PS : the name "imgfield" is what u need to use in ur nextpage [code given to u in ur previous post]
0
 

Author Comment

by:saffcossie
ID: 9777480
Thanks for the help. Your code looks right and I understand it but I think the error is on my part when I originally insert the image which currently goes to the DB and not a folder that is referenced in the DB.

Thanks anyway though, much appreciated
0
 
LVL 18

Expert Comment

by:Plucka
ID: 9784297
Saf,

Your such an iddiot, you don't know anything. You probably don't even know how to ride a bike.

Leave us alone and stop asking stupid questions.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

895 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

11 Experts available now in Live!

Get 1:1 Help Now