Solved

Image Upload

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

21 Experts available now in Live!

Get 1:1 Help Now