I’m making a site using CFFILE to upload pictures to the server! I have a questions about this! I’m using the following CFFILE Script:
<CFIF isdefined ("FORM.txt_addTN")>
<CFIF VAL(CGI.CONTENT_LENGTH) GT 60000>
<cfset Note="Your File is too Large! (#VAL(CGI.CONTENT_LENGTH/1000)# KB)">
<cfelseif form.UploadTN EQ ''>
<cfset Note="You did not select a photo.">
<CFELSE>
<CFFILE
ACTION="Upload"
FILEFIELD="UploadTN"
DESTINATION="/home/httpd/vhosts/polisproperty.com/httpdocs/thumbnails/"
NAMECONFLICT="makeunique"
ACCEPT="image/*">
<cfquery name="rsInsertTN" datasource="Polisproperties">
INSERT INTO sPhotos (homeID, photoName, thumbnail) VALUES (#session.homephoto#,"#cffile.ServerFileName#.#cffile.ServerFileExt#",1)
</cfquery>
<cflocation addtoken="no" url="add_photos.cfm?home=#session.homephoto#">
<CFABORT>
</CFIF>
</CFIF>
<CFIF isdefined ("FORM.txt_add")>
<CFIF VAL(CGI.CONTENT_LENGTH) GT 120000>
<cfset Note="Your File is too Large! (#VAL(CGI.CONTENT_LENGTH/1000)# KB)">
<cfelseif form.UploadMe EQ ''>
<cfset Note="You did not select a photo.">
<CFELSE>
<CFFILE
ACTION="Upload"
FILEFIELD="UploadMe"
DESTINATION="/home/httpd/vhosts/polisproperty.com/httpdocs/photos/"
NAMECONFLICT="makeunique"
ACCEPT="image/*">
<cfquery name="rsUpdate" datasource="Polisproperties">
INSERT INTO sPhotos (homeID, photoName, description) VALUES (#session.homephoto#,"#cffile.ServerFileName#.#cffile.ServerFileExt#","#form.description#")
</cfquery>
<cflocation addtoken="no" url="add_photos.cfm?home=#session.homephoto#">
<CFABORT>
</CFIF>
</CFIF>
On the website the photo’s are showing one at a time with next and previous buttons! Is there a way to influence which picture showes first? I tried eveything but every time it show a picture first that I actualy don’t want
Thank you all in advance