Questions
Recente
I am having a problem uploading multiple files at the same time. The site we are building is a catalog of sorts, and each item may have anywhere from 1-20 images.For this discussion, let's say we're uploading three imagesThe input on the form creates three cffile tags in the form, named img1, img2, img3. Those are working.After inputting the form, I see three distinct temp files. However, when the <cffile> tag runs, it only uploads the first file. Three times.I created output that would show all of the variables, and the output shows the three distinct images, but then <cffile> runs and all of the server variables are correct for the first image, but shown three times.Now, these file names also have to be written to a database, so I have to write the actual file name to the table, with time and date appended on it so that the file names are truly unique. Everything is working for the first file, it's the second and third that are the issue.The code that generates the input
Hi I'm planning to setup a highly available and scalable ColdFusion server on AWS. If I purchase a single ColdFusion Enterprise licence, can I install it on multiple EC2 instances? These can be fail over clusters or auto scaling groups.
I have a database of vehicles that have zip codes associated with them.I want to allow the user to do a search, i.e. Within 40 miles of zip code 19606. An API will be queried, I will match results to my database and display the vehicles by distance from 19606.More deeply, although you probably have better ideas, this will send the distance and zip parameters via an API and return all zip codes and distance from the initial zip code. I will then take these zip codes and query my local database to get zip code results and sort them by distance from the initial zip code.Alternatively I have searched and have seen people use their existing zip codes and adding lat/long data and then using some magic (ok some formula) figuring out which zip codes are within the radius and how far they each are from the original zip code.I have searched and most of the questions relating to this topic are rather old so I'm open to any and all ideas.Cheers!
Greetings, We've been struggling with this for a few days so I thought I'd seek some help. We are continually receiving the following error, causing the lockdown tool to rollback all its settings: "Failed to change the logon users for ColdFusion services!"Has anyone else seen this?Thanks,Henry
We are trying to execute a REST API call (particulary GET) using CFHTTP tag as below : <cfhttp url="https://reqres.in/api/users/2" method="GET" result="remoteCallResult" > <cfhttpparam type="header" name="accept-encoding" value="*" /> <cfhttpparam type="header" name="TE" value="deflate;q=0" /></cfhttp><cfdump var="#remoteCallResult#">The URL "https://reqres.in/api/users/2 " is a public url and it responds with below content :{"data":{"id":2,"first_name":"Janet","last_name":"Weaver","avatar":"https://s3.amazonaws.com/uifaces/faces/twitter/josephstein/128.jpg"}}When CFHTTP tag is being used, I consistently see below error on my webpage :Above issue persists, even after installing the certificate from "reqres.in" into cacerts of JAVA_HOME.Can you pl
Hi Team,Can i set auto scaling for ColdFusion application hosted on PaaS (Azure /GCP). Will the single license purchased work while the server is auto scaled in cloudIs the above possible on cloud.RegardsAshwath Shetty
Can anyone explain why I cannot find a link to the 2016 version of cf server or developer edition for 2016 anywhere on the adobe site including this forum? Is anyone else concerned about using 2018 dev edition and not having true compatibility for clients that I am developing code for 2016 server base? Please help adobe update these links on the downloads page here - >> Adobe - ColdFusion Support Center : More Downloads and can someone please give me the direct download link for 2016 developer edition.Thanks!
I have a simple question regarding how I build an application using ColdFusion Reporting Service. I have an application that setup to pull individuals certificates, badges, and confirmation letters. One of things I have done is created a *.cfm form that generates a stored procedure in the database when a specific individuals certificates, badge, and confirmation letter is pulled. After the stored procedure is created the *.cfr is call and the stored procedure is executed.I am using CF-9 to do this which I know is past end of life.I have been told this is an antiquated method of do this by an individual that has only used PHP and WordPress and never used a ColdFusion Reporting Service or SQL Server Reporting Service for that matter.Is there a better way of creating reports such as this?
I am trying to figure out how to reference a 2nd level key within a structure for the purpose of hiding it within a CFDUMP. If I just CFOUTPUT it, I can use one of these references and the value outputs perfectly:- #test.level1.level2#- #test["level1"]["level2"]#But if I don't want CFDUMP to output test.level1.level2, I can't get it to work (e.g. hide='what?'). I've tried these permutations, with no success.- level1.level2- test.level1.level2- level1["level2"]- test["level1"]["level2"]Any ideas? Thanks.
I've successfully created/registered a rest service, but I'm having trouble keeping it alive. I can understand that a change in code needs a refresh of the service (in administrator or restinitapplication), but the following situations also break a service"clear template cache" button in administratorrestart of serverAnd the only way to handle this, is to write a scheduled task which polls the service and calls restinitapplication when it does not respond.Even if I set the scheduled task to run every 5 minutes, it's still possible that the service is totally unavailable for 4+ minutes. Other frameworks like Taffy does not have this problem.Why should i opt for REST if SOAP works many times better? Or am I missing something?
I keep getting this error and I am not sure why:An error occurred while trying to encrypt or decrypt your input string: The input and output encodings are not sameI think it is because the password is being pulled from a database.Here is my code:<cfquery datasource="#datasource#" dbname="#dbname#" password="#password#" name="getpass">SELECT email,pass,usernameFROM membersWHERE email = '#email#'</cfquery><cfoutput>#decrypt("getpass.pass", "xxxxxxxxxxxxxxxxxxxx==", "AES", "Base64")#</cfoutput>Thanks!
I am using CFHTTP to connect to an external company API. When I check in the "inspect" of google Browser it is like Resquest Method "GET". The API receives request via "POST". And the Content-type does not change to application/json. <cfhttp url="https://app.XXXXXXX.com/ErpPedido/V1" port="443" charset="utf-8" method="Post" result="response"> <cfhttpparam type="header" name="accept" value="application/json"> <cfhttpparam type="header" name="Content-Type" value="application/json"> <cfhttpparam type="body" value="#serializeJSON(stFields)#"> </cfhttp>
Hi,ColdFusion could not delete the file C:\ColdFusion11\cfusion\wwwroot\LAW\Briefs\A2878\pwd1.txt for an unknown reason.I am unable to delete any .txt or .msg file immediately after upload from their physical path and as well as from server too and the Coldfusion doesn’t return any particular reason for failure.It doesn't allow me to delete the file from the physical path i.e. from the brief folder, it will show an error pop-up with a message 'The action can't be completed because the file is open in coldfusion.exe'(see attached screenshot). It seems that Coldfusion locks the file in the background and after sometimes it allows me to delete the file successfully.For another extension like .docx, .pdf, I am immediately able to delete the file after upload. Apart from this, when I restart ColdFusion service it will allow me to delete the file again as if the file is getting locked by ColdFusion. I am using ColdFusion version '11,0,03,292866'.Does anyone have a solution to this problem?
Hi, I'm doing some form data validation and would like to add rules for files (size and type). Ideally I want to avoid CFFile as the validation shouldn't have anything to do with moving the file anywhere. I know that when ColdFusion processes an upload, it stores it in a temporary directory and filename. This is stored in the form field (e.g. form.file = c:\sometempdirectory\blahxxx.tmp) and I can use that to do a GetFileInfo and find out the filesize. Awesome.... except it's called blahxxx.tmp :( I want to know the real filename, not the temp filename but I can't find it anywhere. ColdFusion must know it, probably hidden along with its other darkest secrets, as it'll use it when we do a CFFile action="upload". So where is it being hidden? Any ideas? I have seen suggestions of using an extra hidden field plus some javascript, but to be honest, I don't like trusting something like that as it's possible to abuse it. I've also gone hunting inside "getPageContext().getRequest()" but no
I have extensive records containing dialog edited using CKEditor. It translates father's to father&rsquo;s and this is how it is stored in the table.I am pulling the records to make a web page - hundreds of them at a time. I process several text fields (nsvarchar) such as:<cfset a = '<blockquote class="dkpurplefont"><i>Notes for birth: </i>' & #GetData.BirthNotes# & '</blockquote>'><cffile action="append" file="#fname#" output="#a#" addnewline="yes">I was using <cfset a = '<blockquote class="dkpurplefont"><i>Notes for birth: </i> #GetData.BirthNotes#</blockquote>'> which should work. I switched it thinking I might solve the issue.60% of the time I will see "father's" on the completed web page. 40% of the time I see "father?s"I infer that the engine is choking on the &rsquo; as it processes #GetData.BirthNotes# and I'm guessing it is a speed issue - it is being processed faster that it can interpret.
I have an application that is on 2 servers where form data from server #1 populates and creates a fill-in PDF on server #2Server #1 - Railo server (Cant do PDF stuff)Enter Info into Form > Submit Form to Server #2Server #2 -Windows server with CF16 on itGets form field info and creates a PDF.Now I want that PDF to be copied back to server #1.How can I do that?Do I save it on server #2 and then do some file transfer or can I save it back to server #1?
We are trying to use CFPDF merge and having issues having all the merged documents come out the same width. currently some are slightly larger than others but enough to make it annoying. have verified the orientation of all docs are the same, and have already attempted to use the getinfo action to determine document widths, but apparently CF is "optimizing" these at runtime to what it "thinks" it should be thus throwing off the proportions to use in hscale & vscale attributes. Anyone have this issue and found a solution?
After verifying database, when I am going to database on localhost 8500 it says database could not be created.Please help for this issue.
Adobe ColdFusion(2016 リリース)の無料のデベロッパー版またはトライアル版は現在入手可能でしょうか。2018リリース体験版は入手できるのですが、2016リリースを手に入れたいです。
I want to use cfspreadsheet to update the data in an xlsm file.From the docs, it seems that cfspreadsheet can handle the "updating"... does anyone know if it has a problem with xlsm files in excel?
Hi, we have a CF2018 Standard Server installed in a windows box.We installed PMT into another server and after the install no CF instance gets detected, even entering the CF server details (ip, port) doesnt work in order to get the CF instance detected by PMT.We only have one application in that CF server and no J2EEAny help on setting that monitoring toolset up will be most welcome.Thanks in advance.
I'm running an old CF 9 server and application where it calls out to a remote web service every half hour between the hours of 7:30 am and 11:00 pm every day through the job scheduler. At the 7:30 am run, it always re-compiles the web service stubs every day. This generates a GET when it is requesting the fresh WSDL from the remote endpoint, and then it generates a POST when it is invoking the normal method it uses to pass data. Subsequent calls to this remote endpoint do not cause the stubs to re-compile, and the GET is subsequently also not generated, that is, until 7:30 am the next day. The problem is that I am trying to get rid of that first GET at 7:30 am, which is another way of saying I don't want the system to re-compile the stubs every day.I have checked the code, and ancient though it is, it uses cfinvoke webservice="https://someendpoint.asmx?wsdl" method="SomeMethod" returnvariable="returnXML". I'm not sure if the refreshWSDL attribute existed in CF 9
Hi,I am trying to set the content-type for a cfhttp request like this (on coldfusion 9):<cfhttp redirect="no" method="get" timeout="120" url="http://10.0.0.1/test2.cfm"> <cfhttpparam type="HEADER" name="Content-Type" value="application/json; charset=utf-8"></cfhttp>// coding on test2.cfm:<cfset x = GetHttpRequestData()><cfdump var=#x#>// Output on test2.cfmcontent [empty string] headersstructAccept-Encoding deflate, gzip, x-gzip, compress, x-compress Connection TE Host 10.0.0.1:80 Proxy-Connection close TE trailers, deflate, gzip, compress User-Agent ColdFusion X-REWRITE-URL http://10.0.0.1:80/test2.cfm method GET protocol HTTP/1.1 As you can see no content-type is send through. I also tried the sniffer.exe:GET http://10.0.0.1:80/test2.cfm HTTP/1.1Host: 127.0.0.1Proxy-Connection: closeConnection: TETE: trailers, deflate, gzip, compressUser-Agent: ColdFusionAccept-Encoding: deflate, gzip, x-gzip, compress, x-compressHere you can also see t
Hi We're in the process of setting up our new Windows 2016 server running ColdFusion 2018 with Update 1 installed. We run MySQL 8 and are using the most current Connector (mysql-connector-java-8.0.13.jar).We're having a problem with a SELECT statement when the only field chosen is a DATETIME field that is only being used for the time section. The returned value from the database is '0000-00-00 00:01:00' (ie 1 hour). SELECT Employee_LunchBreak_Length FROM t_EmployeeWHERE t_Employee_ID = '1'The query above returns a 500 error and creates the following entry in the Application log."Error Executing Database Query.Zero date value prohibited The specific sequence of files included or processed is: (*path to template*)"The query works in both MySQL Workbench and in PHP without issue. It also works on our previous CF10 / MySQL 5.6 server.On both the new server (CF18) and old server (CF10) we're setting a connection string on the DSN of zeroDateTimeBehavior=CONVERT_TO_NULL&characterEncoding
Hello,We are having an issue with CPU loading on our server. It has to do with Client Storage Purge. I see where this issue has been around for a while but could not find a solid solution. Our sever is running Windows Server 2003 Standard and ColdFusion 8. There is only one ecommerence website utilizing CF and the database is MSSQL.The server average CPU usage is between 5% and 10%. Then this appears in the log; 03/30 05:56:34 Information [scheduler-3] - Run Client Storage Purge. The CPU usage jumps to 50% to 80% for about 4 to 5 hours. Then after it settles back down, with in the next few hours it starts over again.Settings,ColdFusion Administrator > Server Settings > Client VariablesSelect Default Storage Mechanism for Client Sessions is set to RegistryPurge Interval is set to 1 hour and 7 minutes.Now, my working knowledge of ColdFusion is not at an expert level. I really do not know what Client Storage Purge is doing, what client varia
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Você já é cadastrado? Entrar
Ainda não tem uma conta? Crie uma conta
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.