The official community for ColdFusion.
Recently active
I'm using cfdocument to create a pdf. Displaying the pdf in the browser works fine, but I would like to just open a download prompt when the user opens that url.<cfdocument format="PDF" localUrl="yes" margintop="0.25" orientation="landscape">What I tried: I followed this and added a filename: https://community.adobe.com/t5/coldfusion-discussions/how-to-use-cfdocument-create-a-pdf-file-and-save-the-file-in-server/td-p/966276But it just saves that file in a lucee temp folder. I also tried using a header like this:<cfdocument format="PDF" localUrl="yes" margintop="0.25" orientation="landscape"> ... Your PDF content goes here... </cfdocument> <cfheader name="Content-Disposition" value="attachment; filename=your-file-name.pdf"> <cfcontent type="application/pdf" file="#expandPath('your-file-path.pdf')#">But it also doesn't open a download prompt. What I want is that it opens a prompt and asks the user, where he wants to save that file.
Hey folks. I have 10 file upload files for users to upload up to 10 different images into the same folder, but not sure how i should go about it. I did 10 different inserts, but it seemed very "chicken scratch" type coding. Not sure how to do it any other way, which brings me here. Can someone give me some direction on how to do it better?I should say i have 10 different upload fields because i need the files to be named something like "page1.jpg, page2.jpg....etc". I could be doing this wrong too. I don't know. Any advice will be great.Thanks
Hi,We have a load balanced environment (netscaler). When a user hits a page the load balancer sends the request to a particular box with sticky sessions by IP which starts the SSO process using InitSAMLAuthRequest. Our IDP https://login.microsoftonline.com/ then posts back but since https://login.microsoftonline.com/ does not have the same as IP as the user, the load balancer sometimes sends the response to a box that did NOT initiate the request and we get an error: Possible replay attack occurred as there is no login/logout information associated with this request.I can catch the error but there is not much else that I can do because now the load balancer will keep the user on box 1 and https://login.microsoftonline.com/ on box 2 so no way to redirect to another server. Any ideas?Thanks,Gabriel
I have a fresh Windows Server 2022 Std server setup. When installing ColdFusion 2021 using the latest installer I'm not shown the option to configure IIS websites. I realize I can probably set it up manually with WSCONFIG, but I'm concerned this indicates something else is wrong.
Hi,We are running CF2021 on update 5 and when I try to create a new CF instance and check the box to "create Windows Service" it says [step 1 of 2] Creating new CF Instance... Done[step 2 of 2] Creating the CF runtime, this may take a few minutes...Doneand I DO see a new folder under the root for the new instance, but it did NOT create the windows service and when I try to click to go the CF admin to the instance we just created it says "This site can’t be reached 127.0.0.1 refused to connect." The new instance is using port 8500 because our 2 existing instances are using non-standard port #'s leaving 8500 available. I checked logs but am not finding anything. Thanks,Gabe
I am trying to use Shibboleth 3 as the sp and azure AD as the ipd and I can see that I have successfully implemented based on the Shibboleth transaction log. 2022-12-16 12:35:54|Shibboleth-TRANSACTION.AuthnRequest|||https://sts.windows.net/c04845f0-4224-4637-aed2-9beea8319b5b/||||||urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect|||||| 2022-12-16 12:35:55|Shibboleth-TRANSACTION.Login||_292e2cf9f81890bcdf7ffe1cd147c92f|https://sts.windows.net/c04845f0-4224-4637-aed2-9beea8319b5b/|_ff1422a3-4c91-4255-adec-fa6fd52d2600|urn:oasis:names:tc:SAML:2.0:ac:classes:Password|2022-12-16T07:00:19|authnmethodsreferences(2),displayname(1),emailaddress(1),givenname(1),groups(1),identityprovider(1),objectidentifier(1),surname(1),tenantid(1)|davisg1@XXXXX.com|urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST||urn:oasis:names:tc:SAML:2.0:status:Success|||Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.46|167.24
I have been having problems setting and reading a cookie. I broke it down to a really simple snippet of code: <cfcookie name="cookie.test"value="hello"expires="Never"> <CFIF structkeyexists(cookie,"test")>Cookie exists<cfelse>Cookie does not exist</cfif> When I load this page in Chrome, I can use the Dev tools in the browser to see that the cookie was set. Coldfusion always says the cookie doen't exist (initially, I want to read the value, but I can do that because it claims it does not exist). So, it seems the server is happy to write the cookie, but not to read it. Is there a server setting somewhere that might need to be altered?
In our ColdFusion 2021 Administrator, the links to the Log File Names are disabled (not present, just text) and a number of Actions icons are missing (see attached screen shot for examples). The log files are present on the server, I can navigate to and open them, they are logging current activities. This is happening on both our servers (one development, one production). Question:Why do I not have links to the server log files like application.log?How do I get the links back? Our ColdFusion 2021 servers run on cloud based Windows 2019 server boxes.
a vendor has switched from sftp to mft and i wanted to see if cf is able to integrate? thanks.
I have installed ColdFusion 2021 on a Windows Server 2019, with a patch from Adobe which allows me to run Java 11.0.11 and sandbox security. This was working well until recently. After making some changes in the CF admin (dbug IP addresses, enabling only the component cache, disabling HTTP error codes), in CFadmin I have each of the main menu items, such as Debugging and Logging, but none of the submenus, such as the debug IP addresses. If I maximize the browser window (IE or Firefox), I can often see a vertrical scroll bar where the submenus should appear, but it is too small to see any of the submenu items. If I look at the source for the page, I can see the submenus there. I made a ColdFusion backup of everything but Java just before making the changes listed above, but restoring that does not help; nor does it help to reboot the server. Would appreciate any help with this. Thanks,Mike
I have a pdf file that downloads from a 3rd party vendor.The issue is that the file does not have the .pdf extension and to work with the file we need to add the .pdf each time.For example, a file downloads as abc but needs to renamed to abc.pdfHow can I rename the file correctly with the .pdf extension right after it downloads?
Hi all - I'm running the Developer Edition of CF 2018. I'm doing a POST call to an https URL using CFHTTP: <cfhttp url="https://www.theremotesite.com" method="post" result="httpResp" timeout="60"> <cfhttpparam type="header" name="Content-Type" value="application/json" /> <cfhttpparam type="body" value="#myData#"> </cfhttp> The call works fine about 75% of the time, but for the other 25%, this comes back: The same POST through the Postman app never results in this error. I am seeing multiple posts on the Web about this problem, but the issues mentioned appear to be constant, not sporadic, and they seem to be related to CF9 and that era. The solutions mentioned is some of those articles (updating the truststore, updating the JVM, swapping providers, etc) are not in my comfort zone, and I'm hesitant to make changes that will be problematic to back out. Some of thee articles are:https://www.raymondcamden.com/2011/01/1
How can I keep the selected item with cfselect binding? When user selected a State (Delaware) from the dropdown Alabama shows up as the first State once the form refreshed instead of Delaware. CFSELECT has a selected attribute but I don't know what value should go there and not sure if this is the one I have to use to keep the selected value. I've been searching with no luck so far, Can anyone help? another question is how to cfdump cfselect binding to see what have is return? DependentSelect.CFC:<CFFUNCTION name="GetStates" access="remote" returnType="array" hint="Get US 50 States"> <!--- Define variables ---> <cfset var StateResult=ArrayNew(2)> <cfset var i=0> <cfquery name="q_States" datasource="#Trim(application.dsn)#"> SELECT DISTINCT StateName,StateCode FROM States ORDER By StateName </cfquery> &n
Hello,we have a strange problem with the ColdFusion Built-in WebSocket Server. I really hope that you can help me.We have already used the Built-in WebSocket Server in ColdFusion 2016 and had no problems.After the update to ColdFusion 2018 we have the problem that sometimes the handshake fails.We have opened all the required ports:8579 (WebSocket port)8543 (SSL port)But it can't be due to a port or our certificate, because sometimes the connection can be established.We have about 200 subscribers a day and about half of them can't connect. The error message appears in the console: "WebSocket connection to 'wss://[..]:8543/cfusion/cfusion' failed: WebSocket opening handshake timed out."If I then reload the page a few times, it eventually works.Do you have any ideas what we can try?Do we need to adjust something in the "server.xml" under "ColdFusion2018\cfusion\runtime\conf"?Thank you for any help you can offer!
Hi, Can someone help us for the CF enterprises licensing in Virtual environment. We have 9 Virtual servers running on windows 2019 server, each VM have 6 cores, so total our requirements for VM cores are 54, so how many CF enterprises license we need to purchase. Shall we buy 7 CF license is ok, which will support 56 cores.
I am using the api manager and trying to set up a simple api like this: <cfcomponent rest="true" restpath="restapi"> <cffunction name="sayHello" restpath="sayHello" access="remote" returntype="String" httpmethod="GET"> <cfset rest = "Hello World"> <cfreturn rest> </cffunction> </cfcomponent> My questions are:What do I name this file?Where do I save the file in my site? Is there a certain path or folder structure needed?In the API manager Can I name the api anything?What would the endpoint be?Under resources what would the resource name be specified as? Right now I have the endpoint as mysite.com/restapi. The resource is a get for sayHello but it is returning an error when I try to test it: "error": "There was some error while invoking the API.Verify and try again"Any info is appreciated.
Hello, I'm using CF 2021 and I'm wondering what the best way to integrate remote pdf document signing. I am testing some code I put together using DocuSign, and that may work but I'm not sure it's the best, most cost effective option. The use case would be home improvement salesmen sending contracts for signature. Thank you
We are moving our site to a new server. We are using CF 10.We want to remove our serial number, leaving the old server in Developer Mode.How do we remove the serial number from CF Administrator?
After installing Update 5 for CF 2021, I'm getting this error: Receiver class coldfusion.graph.osgi.InteractiveGraphingServiceImpl does not define or inherit an implementation of the resolved method abstract generateGraph(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcoldfusion/server/GraphingService$GraphURLFormat;)Ljava/lang/String; of interface coldfusion.server.GraphingService. null Anyone have any thoughts? Does a package need to be reinstalled perhaps? Thanks.
Hello, so I just reinstalled CF 2019 because I was having errors. Everything seems to be good now, but I get error 1067 when trying to start ColdFusion 2021 ODBC Agent. ColdFusion 2021 ODBC Server won't start either, but I'm guessing once ColdFusion 2021 ODBC Agent starts then ColdFusion 2021 ODBC Server will won't I'm on Windows Server 2019. What is the issue and how can I get ColdFusion 2021 ODBC Agent to autostart again? Thanks
Hello here's some info:Windows Server 2019Coldfusion 2021IIS 10 I've added everything in IIS, CGI, ISAPI Filters and Restrictions and I have all the handlers. Issue I keep seeing on my test page is just a blank white screen. This was my test file coding: <!--- Dump out the server scope. ---><cfdump var="#SERVER#" /><!--- Store the ColdFusion version. ---><cfset strVersion = SERVER.ColdFusion.ProductVersion /><!--- Store the ColdFusion level. ---><cfset strLevel = SERVER.ColdFusion.ProductLevel /> What might be the issue and why am I just getting a white screen of death on all my cfm pages? Thanks
On our Coldfusion 2018 production server our generated pdf's have suddenly a watermark on them as if in developer mode "Coldfusion Developer/Trioal Edition Not for production Use". In the administrator it also says "developer". Does anyone have a solution? Could this have any to do with de latest update 15?
I am trying to get the signature field from a pdf and this message pops up:PDF Digital Signatures is not available in this edition of ColdFusion server.Running CF Standard 2018 update 10 with jdk-11.0.9. <cfpdf action="readsignaturefields" source="#expandPath('./pdfsig_test_signed.pdf')#" name="signinfo" /><cfdump var="#signinfo#" label="signinfo"/>
Im currently developing an SSO solution with the SAML module. Running into issues when hosting this behind an azure app service that terminates the TLS before continueing as http, which then causes theProcessSAMLResponse to fail since it was recieved over http instead of https. Has anyone run into this issue before or have any suggestions?
Hello, I have a simple coldfusion file that wraps html in a cfdocument tag and then saves it to a PDF file. This has worked for years on previous versions as well as in ColdFusion 2021 since we upgraded earlier this year. After a recent ColdFusion 2021 update the cfdocument is now throwing the error "ice.storm.print.PageDecoration not found by document" when it tries to generate the PDF file. Am I missing ome sort of Java library that handles the PDF or does anyone else have any ideas as to what has happened to cause the error? Messageice.storm.print.PageDecoration not found by document [78]StackTracejava.lang.ClassNotFoundException: ice.storm.print.PageDecoration not found by document [78] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1597) at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(Bundle
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.