Ali,
Just upload the image as usual to whatever directory you'll be using.
If it's multiple images with multiple cffile's, and you're using MX7,
use the result attribute which lets you specify your own variable name
for each image.
result=file1.serverfile
result=file2.serverfile
If you are going to have the general public uploading files, I'd
suggest not allowing as many as 10 images per page - you are likely to
get timeout problems. I'd suggest only 5 or even as few as 3 images
per page.
What I've found on my pages is that if users just take the picture off
their
If you are going to have the general public uploading files, I'd
suggest not allowing as many as 10 images per page - you are likely to
get timeout problems. I'd suggest only 5 or even as few as 3 images
per page.
What I've found on my pages is that if users just take the picture off
their
It is pretty simple to do. On your form tag you need to add
enctype=multipart/form-data to be able to upload files to the server, and use
the type=file for the input field. On the server side, use the cffile
action=upload tag to put the file in the directory of your choice. The
cffile tag
There's a step-by-step tutorial on my site at
http://afpwebworks.com/Index.cfm?pid=111335
It doesn't do precisely what you want, but ought to get you through
the tricky parts.
Incidentally limiting the file size wont help you with the timeout
problem, because if a file's too big, it's uploaded
In your INSERT statement, access the name of the file from your upload
statement using #cffile.Serverfile#.
Ex:
cfif isDefined(FORM.submit)
cffile.
cfquery datasource=mydb
INSERT INTO products (imagepath)
VALUES (
'#cffile.Serverfile#'
)
/cfquery
Obviously, you will want
Ali,
Just upload the image as usual to whatever directory you'll be using. If it's
multiple images with multiple cffile's, and you're using MX7, use the result
attribute which lets you specify your own variable name for each image.
result=file1.serverfile
result=file2.serverfile
etc..
Once
Hi:
Do you know any tutorial that teaches me how to make an image upload form that
I can use with my Add Product page? I need it to be something like the one in
cartweaver shopping cart. I mean when you upload the image it is uploaded and
the address goes to the database at the same time and
8 matches
Mail list logo