Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
CF Nut #1
Wierd update names
I UPLOAD a file and UPDATE the record in my database. I uploaded a file called
test, and in my upload folder its named test but in my database it looks like
this C:\WINDOWS\TEMP\ACF1D92.tmp. Here is my code.
<cf_fileupload
userid = "justin.nickrand"
password = "jnpeanut"
filefield = "form.filename"
destination = "/thumbautotrading_com/www/upload"
nameConflict = "MakeUnique"
<cfquery datasource="A9819_myDSN" name="Process">
UPDATE CustTable
SET AutoDescription = '#form.filename#'
where CustTable.CustId = #Session.CustId#
</cfquery>
I know in my upload file I make it Unique but I need to in order to keep it
seperated from other files with the same name
CF Nut Guest
-
Wierd Box
Hi, I've gotten a bit better at this. But now I come with a problem(when don't I). I have this wierd box displaying at the bottom of my page. Thing... -
wierd problem
> strMdate = strmonth & " " & strday & " " & stryear What kind of date is that? 6 5 2003 is not a proper date format. Try: strMdate =... -
Machine names v. User names
Good Morning... Unfortunately one of our mainframe processes require a local machine name that is identical to the local user account name. For... -
Wierd Safari bug
Have you tried deleting your Safari preferences file? -
wierd error.....help please.....
have been working with a site and today started getting an error when uploaded page on the live server...everything works well locally... The XML... -
OldCFer #2
Re: Wierd update names
Use:
SET AutoDescription = '#cffile.ServerFile#'
I would hope that cf_fileupload would make the same variables
available as cffile. I'm not familiar with cf_fileupload.
OldCFer Guest



Reply With Quote

