Is there away to remove special characters from a file thats being uploaded.
I can do this to strip out invalid characters, to insert into the database.
#REReplace(form.image1, "[^0-9a-zA-Z_]", "", "ALL")#
But I am having trouble stripping the invalid characters out of the upload.
I am having some trouble, I am uploading an image. Then I do an insert into a DB, and do a select to grab the last insert. But for some reason I'll get an error. I don't get the error all of the time, but I do get it enough where its becoming a problem. I am using cflock, because I was told...
help please I'll get this error at the most inconvient times. How can I get rid of these errors.
"The form data has expired, Please reload this page in your browser".
Someone told me to set a time out. that doesnt work. sometimes i get the error and sometimes i dont.
<cfform format="flash" onSubmit="return fieldcheck()" height="600" width="500">
Can anyone explain to me why this doesnt work. It works if i remove the onsubmit?
Thanks for you help
I am trying to create line breaks in some output, using the rereplace tag. Here's what I have.
<cfoutput>#REReplace(sum.activities,"\n","<br>","all")#</cfoutput>
Here's what I would like the output to read!
Running
Jumping
Fishing
Football
Track
Where it puts a line break when the user...
I am having a problem. When users print there forms. The information in the text boxes aren't printing. Is there a way to print all of the info from a text box. The tag in question is!
<input type="text" name="address" size="17" maxlength="50">
What I typed into the box is the following.
I have...
Can anyone help I keep getting errors when I try to upload a document. Here's what I have.
<cfset thisDocPath='D:\documents'>
<CFFILE action="upload" filefield="docDocument" destination="#thisDocPath#" nameconflict="MakeUnique">
I keept getting this error.
The form field specified in the...
How can you setup a OLE DB datasource. I am using CF 5, I am upgrading to CF 8 and SQL DB in the future. And I keep getting too many connections error with access. I saw a posting to connect your DB via OLE DB. But it fails, everytime I do so. Can someone help.
Thanks
I am using Coldfusion 5, and everynow and again, when a user visits a site. they will get the message.
ODBC Error Code = 08004 (Data source rejected establishment of connection)
[Microsoft][ODBC Microsoft Access Driver] Too many client tasks.
The error occurred while processing an element...
I am using CF 5, and everynow and again, when a user visits a site. they will get the message.
ODBC Error Code = 08004 (Data source rejected establishment of connection)
[Microsoft][ODBC Microsoft Access Driver] Too many client tasks.
The error occurred while processing an element with a...
Is there anyway to do a trim off extra character. Example I an unknown variable i.e question10. I never know what that value is so I am using QUERY_STRING variable. And that tells me if it's, question1, question10 or whatever. But since its a url variable, it adds the = after the question10...
IS this possible.
<cfset get = querymerge#c#(getNo,getStu,"ID","Flag_ID,FlagNote")>
querymerge is a function, the c is a counter. I am trying to call different functions ie. querymerg1, querymerg2. i keep getting errors. I can output the word querymerge#c#, and it will output querymerge1...
I am new to Ajax, as a matter of fact I know nothing about ajax. I was wondering if there was a way to auto refresh a page, after a certain time length. Sort of like what those fantasy football pages do. Where it refreshes but the user never notices.
I am new to Ajax, as a matter of fact I know nothing about ajax. I was wondering if there was a way to auto refresh a page, after a certain time length. Sort of like what those fantasy football pages do. Where it refreshes but the user never notices.
I am having a problem with CF. When user go to delete a folder in CF, i get an error.
Because a file named _vti_cnf gets created. How do I not create that file. Its something that gets created autmatically. I don't create the file it somehow gets created by itself. Users upload images, and...
I am having trouble inserting into an access database.
<cfquery name="insert" datasource="#datasource#">
INSERT INTO noteLog (userID, note)
VALUES (#form.userID#,'#form.note#')
</cfquery>
the note field is a memo datatype. how do you insert into a memo datatype field. i've taking out the...
I trying to use cfexecute to do a batch copy of files, from one folder to another.
<cfexecute name="D:\copy2.bat" timeout="60"></cfexecute>
the copy2.bat files has a variable in it.
copy D:\folder1\folder2\userdir\#empID#\*.pdf D:\
the #empID# is a variable, i do a cfset before the...
I dont know if this is possible, but I would like some help.
I am trying to copy files from my server to another companies server, via coldfusion.
I have no problem copying files locally, but when I try to copy via network, no dice.
<cffile action="copy" source="D:\folder1\file.pdf"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.