The official community for ColdFusion.
Recently active
Hi,I have a webservice who receives a string parameter (xml). I send it a string shorter than 8 kb a no problem but when I send a long string longer than 8 kb, it has problems.Do someone know how can I fix this?Where can I modify this value?regards.
I have a couple of problems with my client variable storage on CF8.Storage is in a sql server db:cdata has no data.cglobal is growing very quickly. It seems that every new page request is generating a new entry on this table. I have some ajax requests that poll every second, so it's hammering the db and slowing everything down. Any ideas as to how I can debug either of these issues would be welcome, thanks.
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-71aa.html
I am trying to do test to see if a file is in a specific file folder location and if the file exists then it displays the icon to download it. Here is the code I have so far and I just need a little help to get it going. The part #queryObj2.Video_path# is just part of a query that returns a name in the video_path. Thanks. CODE:<cfset yourFile = "../download/files/powerpoints/"&#queryObj2.Video_path#&".pptx"> <cfif FileExists(yourFile)> <p>Your file exists in this directory. You entered the correct filename</p> </cfif>
I am new to ColdFusion and need some help. I set up a virtual folder on my website and then mapped in the CF9 admin panel to a "Docs" folder above my root, where I would like to store sensitive documents. CF tags are enabled.I know that my mapping is set up correctly, because when I set up a cfm page with the following code, I can successfully download the file:<cfheader name="Content-Disposition" value="attachment; filename=Calendar.pdf"><cfcontent type="application/pdf file=/Docs/Calendar.pdf">But what I need is to create one cfm age that will be able to handle downloads of multiple files types and names from the folder above my root.I then found Duke Snyder's solution on an older forum for the "click link and download file" question where he suggests making a "download.cfm" page with the following code: I did this, and named the file "download.cfm"<cfsetting enablecfoutputonly="yes"> <cfheader name="Content-disposition" value="attachment; filename=""#Url.F
Hi, I am currently running an instance of the Coldfusion AMI with linux.I want to keep that instance and launch 2 more web servers (independent machines) that point to the coldfusion application server.How can I do this with apache , tomcat, etc?
I have the form with mutiple text boxes for user to enter email addresses. It also has mutiple checkboxes for user to select devision they want to add these email addresses to.How can i loop the divNo and emails and insert them into table. The code i have below is worked fine for emails but i dont know how to do for divNo. Can you please advice this? <!---cfm---><form action="insert.cfm" method="post"> <input type="checkbox" name="divNo" value="ACCT" /> ACCT <br> <input type="checkbox" name="divNo" value="FNA" /> FNA <br> <cfloop index="idx" from="1" to="5"> <input type="text" name="email" size="30"><br> </cfloop></form>!---insert.cfm---><cfloop list="#form.email#" index="x"> <cfquery name="insert_email" datasourc
Hi,My code below worked file and save file into txt file. However, the date is the problem. I have to open excel file and manulay change the format of the date to make it shows the correct date, other way, it alutomatic shows 00:00:00 when i first open the file. How can i make the date automatic shows from the file i generated in excel?<cfset tab = chr(9)> <cfset Str = ""> <cfloop query="q_report"> <cfset Str = Str & q_report.purchasedNo & tab & q_report.desc & tab & q_report.Del_date & chr(13) & chr(10)> </cfloop> <cffile action="write" output="#Str#" file="#variables.file#">thanks
Hi all im using the following code <cffile action="write" file="#usersId#.txt" output="tewrasdfasdfasdf asdf a dsfa " nameconflict="OVERWRITE">however it doesnt throw any errors, and doesnt create the file in short it does nothing im using ms server 2008 and cf 10can anyone shed any light on itthanks
I installed CF 10 on a server running Windows Server 2008 R2 Standard having logged into the server as a Windows user in the administrator group. I set up CF 10 Administrator to use a single password (the default). I can log into CF Admin when authenticating to the server with the same Windows credentials used when installing CF 10 but if I log into the server as another Windows user in the administrator group I cannot log into CF Admin; I get an Invalid Password error. I thought the whole point of the single password was so that anyone who can log into the server could log into CF Admin. It works like that for my CF 8 and CF 9 machines.
After completing the install process of the hotfix I get the following error when debugging ("Enable Request Debugging Output") is on and the response comes from a remote function whose returnformat is JSON. Did I miss something in the process? Any thoughts?This is the test component:<cfcomponent> <cffunction name="myfunc" access="remote" returntype="struct" output="true" returnformat="JSON"> <cfscript> var st = {}; st["name"] = "ross"; &n
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24-7c48.html
I created a form in cold fusion that has a variable number of form fields (i.e. like line items on an invoice). There are about 5 input fields per line item. When I have only about 10 lines and do the form post, the page executes just fine, but when the number of line items increases to, say, 30, I get an internal server error on when I post the data with the submit button. Doesn't seem like its an error in my code because it works with a smaller number of items, is there a setting that makes the server die when it has too may data fields posted?
Hi I am trying to establish a ftp connection using cfftp tagmy code is <cfftp connection = "myConnection" username = "abc" password = "xyx" server = "server address" passive = "yes" action = "open" stopOnError = "Yes"> <cfoutput>#CFFTP.Succeeded#</cfoutput>But i am getting the following error :The cause of this exception was that: java.net.UnknownHostException:server addresskindly adviceThanks
I have searched high and low and cannot figure this one out. My boss has tasked me with creating a feature test for the CF site I manage and suggested using Cucumber since that's what they're using to test other sites. However, they're all using the Java version, and I don't know Java. I tried using the PHP version but apparently it doesn't work on Windows.So, I'm stuck and my boss isn't going to be happy when I tell her as much! So, I'm trying to find out what I can use to write and execute feature tests on Windows of a ColdFusion site.Any suggestions (that might help me keep my job *smile*)?Thanks!
I am trying to extract the first letter of a firstname and the first 5 letters off a last name and concatate the two valuesFor example I have a data field with "John Smith" in the field.I want to get the first letter of the first name - "John" = JI want to get the first 5 letters of the last name- "Smith" = smithand then concatate the 2 values = jsmithanother exampleFor example I have a data field with "Reese Witherspoon" in the field.I want to get the first letter of the first name - "Reese" = RI want to get the first 5 letters of the last name- "Witherspoon" = witheand then concatate the 2 values = rwitheHow would I do that ?I think I know how to do each step individually but is there a better way to get the value?
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24-7f48.html
Hello,I installed the CF hotfix APSB13-10 hotfix to my CF 9.00 installation. I am aware of the three different versions for 9.01 and 9.02 and used the version for 9.00. In addition, as I had already installed the previous security patch, I used the version that was designed for that.However, after patching I can no longer view the CF Admin. The page renders, but is blank and only has the following HTML:[Ok, I can't paste it, but basically it's all empty tags for HTML, HEAD, and BODY tags.]The websites that run on my server are functioning okay, but obviously without the CF admin I will have trouble in the future if I need to make any changes.In addition, backing out the changes did NOT fix this, so at this point I am stuck. I am running MS Server 2003 R2 with IIS 6.Does anyone have any suggestions for this?
I'm using the Canvas LMS API to attempt to delete user enrollments (see https://canvas.instructure.com/doc/api/enrollments.html#method.enrollments_api.destroy).Here's my CF code:<cfhttp url="#uri#" result="result" method="delete"><cfhttpparam type="header" name="Authorization" value="Bearer #access_token#" /><cfhttpparam type="formfield" name="task" value="delete" /></cfhttp>It appears as though the task form field is not making it through, as the server instead concludes the course enrollment (presumably the API default--I've contact the vendor to verify).However, the following cURL request is successful:curl <same uri as above> -H 'Authorization: Bearer <same access token as above' -X DELETE -F 'task=delete'I'm hoping that a second pair of eyes will spot an error in my cfhttp request, but I'm guessing that ColdFusion does not include the formfield data if the method is set to delete? (The cfhttpparam docs do state "The formField type attribute is only
Hi all I'm running CF 10 and one of the pages is throwing this error "java.io.FileNotFoundException" I've checked and the file that it is looking for is there, and if I browse to it directly in a browser it is displayed.thanks
Here is a survey to understand the usage of ColdFusion Builder as an IDE (Integrated Development Environment) for developing ColdFusion applications.The information gathered here will help Adobe prioritize on areas that need focus or improvement to keep up with the changing needs of ColdFusion developers.Thanks for your time to respond to this survey.
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7afd.html
Hey Folks. Having an issue with updating the database. here is the code plus error--- UPDATE FUNCTION ---<cfquery datasource="#APPLICATION.dataSource#">UPDATE CompanySET CompanyName='#FORM.CompanyName#', Address='#FORM.Address#', City='#FORM.City#', Province='#FORM.Province#', Phone1='#FORM.Phone1#', Website='#FORM.Website#'WHERE UserID=<cfqueryparam value="#SESSION.UserID#" cfsqltype="cf_sql_numeric">AND CompanyID=<cfqueryparam value="#FORM.CompanyID#" cfsqltype="cf_sql_numeric"></cfquery>--- ERROR ---Error Executing Database Query.Data type mismatch in criteria expression. The error occurred in C:\ColdFusion9\wwwroot\Companies\logged\companies\company_process.cfm: line 1311 : Phone1='#FORM.Phone1#', Website='#FORM.Website#'12 : WHERE UserID=<cfqueryparam value="#SESSION.UserID#" cfsqltype="cf_sql_numeric">13 : AND CompanyID=<cfqueryparam value="#FORM.CompanyID#" cfsqltype="cf_sql_numeric">14 : </cfquery>VENDORERRORCODE 3079SQLSTATE  
I have 2 coldfusion 9.0.1 instances running as separate windows services and they are some how cross referenced to one another. I need to fix this and I know it is just a matter of repairing a setting somewhere that is not readily available in the CFAdmin page and does not appear to be in any of the files located under the instances CFIDE and WEB-INF directories. Any help would be highly appreciated.
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.