Solved

Image Upload

Posted on 2003-11-18
3
192 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

830 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