There are two parts to my question:
I have a form that allows for multiple image uploads.
What I want to do is to be able to insert the path of the image to a field in my database.
Right now I can upload the actual image to a particular designated place on my server.
I need to know where that image is located, and in order for me to know that I need a
way to insert that path to my field.
The other part to my question is that would it be possible to generate a sheet providing
information about the uploaded image and then send the contents of that information file
to a a file on my server. For example when the file is uploaded to c:\upload\image an
file is also sent to that path proving information like the server path, image type, user
first name, user last name associated with the image. Without some kind of information
abou the image uploaded, the image is useless because i don't know what use has uploaded
the image.
Anyone have any suggestions?
This is my processing page for my Form.
<CFINSERT DATASOURCE = "mhdinternal" TABLENAME="driver"
FORMFIELDS = "badgeno,licenseno,licenseissue, .......>
<CFINSERT DATASOURCE = "mhdinternal" TABLENAME="Driver_vehicle"
FORMFIELDS = "licenseno, mot, type, refrigerated, vreg, vsurname, etc.....>
<CFIF ISDEFINED("Form.licensephoto1"
>
<CFIF Trim(Form.licensephoto1) IS NOT "">
<CFFILE ACTION="Upload"
FILEFIELD="licensephoto1"
DESTINATION="c:\web\upload\licensephoto"
ACCEPT="image/jpg, image/pjpeg,image/gif,image/bmp, image/tiff"
NAMECONFLICT="OVERWRITE">
</cfif>
</cfif>
<CFIF ISDEFINED("Form.driverphoto1"
>
<CFIF Trim(Form.driverphoto1) IS NOT "">
<CFFILE ACTION="Upload"
FILEFIELD="driverphoto1"
DESTINATION="c:\web\upload\driverphoto"
ACCEPT="image/jpg, image/pjpeg,image/gif,image/bmp, image/tiff"
NAMECONFLICT="OVERWRITE">
</cfif>
</cfif>
I have a form that allows for multiple image uploads.
What I want to do is to be able to insert the path of the image to a field in my database.
Right now I can upload the actual image to a particular designated place on my server.
I need to know where that image is located, and in order for me to know that I need a
way to insert that path to my field.
The other part to my question is that would it be possible to generate a sheet providing
information about the uploaded image and then send the contents of that information file
to a a file on my server. For example when the file is uploaded to c:\upload\image an
file is also sent to that path proving information like the server path, image type, user
first name, user last name associated with the image. Without some kind of information
abou the image uploaded, the image is useless because i don't know what use has uploaded
the image.
Anyone have any suggestions?
This is my processing page for my Form.
<CFINSERT DATASOURCE = "mhdinternal" TABLENAME="driver"
FORMFIELDS = "badgeno,licenseno,licenseissue, .......>
<CFINSERT DATASOURCE = "mhdinternal" TABLENAME="Driver_vehicle"
FORMFIELDS = "licenseno, mot, type, refrigerated, vreg, vsurname, etc.....>
<CFIF ISDEFINED("Form.licensephoto1"
<CFIF Trim(Form.licensephoto1) IS NOT "">
<CFFILE ACTION="Upload"
FILEFIELD="licensephoto1"
DESTINATION="c:\web\upload\licensephoto"
ACCEPT="image/jpg, image/pjpeg,image/gif,image/bmp, image/tiff"
NAMECONFLICT="OVERWRITE">
</cfif>
</cfif>
<CFIF ISDEFINED("Form.driverphoto1"
<CFIF Trim(Form.driverphoto1) IS NOT "">
<CFFILE ACTION="Upload"
FILEFIELD="driverphoto1"
DESTINATION="c:\web\upload\driverphoto"
ACCEPT="image/jpg, image/pjpeg,image/gif,image/bmp, image/tiff"
NAMECONFLICT="OVERWRITE">
</cfif>
</cfif>