Re: upload image and insert the image name into the database for the right product

2007-05-11 Thread Ali Majdzadeh
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

Re: upload image and insert the image name into the database for the right product

2007-05-11 Thread Mike Kear
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

Re: upload image and insert the image name into the database for the right product

2007-05-11 Thread Ali Majdzadeh
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

Re: upload image and insert the image name into the database for the right product

2007-05-11 Thread JJ Cool
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

Re: upload image and insert the image name into the database for the right product

2007-05-11 Thread Mike Kear
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

Re: upload image and insert the image name into the database for the right product

2007-05-05 Thread Joel Watson
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

Re: upload image and insert the image name into the database for the right product

2007-05-05 Thread Will Tomlinson
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

upload image and insert the image name into the database for the right product

2007-05-04 Thread Ali Majdzadeh
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