Adam Cameron
mrtom
10/02/2022, 7:29 PMalexpixl8
10/03/2022, 11:05 AMNate Smith
10/05/2022, 12:26 AMPeter Hoopes
10/05/2022, 12:52 AMgsr
10/05/2022, 3:23 PM<url-pattern>/index.html/*</url-pattern>
</servlet-mapping>
but when i view my html in browser, i see raw cfm code in the form <cfinclude, i did restarted my server after the change i didMarc Funaro
10/05/2022, 3:42 PM"data_bigint" = PrecisionEvaluate(-9223372036854775808)
gsr
10/05/2022, 5:58 PMbrettpr
10/06/2022, 12:41 PMAnders Lars
10/07/2022, 6:27 PMdswitzer
10/07/2022, 6:50 PMEvil Ware
10/07/2022, 7:26 PMzackster
10/10/2022, 12:03 PMzackster
10/10/2022, 12:06 PMgavinbaumanis
10/12/2022, 10:32 AMthis.currentPath = getDirectoryFromPath(getCurrentTemplatePath());
this.delim = find("/", this.currentPath) ? "/" : "\";
this.basePath = listDeleteAt(this.currentPath, listLen(this.currentPath, this.delim), this.delim);
this.mappings["/coldspring"] = "#this.basePath#/cfmapping/coldspring/";
Which is fine and works great...
But I have just installed testBox and it comes with its own Application.cfc - which I know I can do without... I don't need it - but as a default its application.cfc comes with similar code for creating the mappings... again all fine - but it is off by one directory.
The very short version of all this is I would like to propose a new function for getting the "parent" directory - which would effectively just be - in CFML
listDeleteAt(this.currentPath, listLen(this.currentPath, this.delim), this.delim);
Thoughts?zackster
10/12/2022, 3:05 PMgavinbaumanis
10/12/2022, 3:12 PMresult = fileUpload(savePath, "audioFile", "audio/wav,audio/x-wav,audio/vnd.wave", "MakeUnique");
I am getting the following error which I think is weird;
When the value of the attribute STRICT is TRUE, only MIME types are allowed in the attribute(s): ACCEPT.
Because I AM including ONLY mimetypes in the Accept attribute / arg and fileUpload() doesn't have a strict attribute/arg!
The payload has;
Content-Disposition: form-data; name="audioFile"; filename="question3.wav"
Content-Type: audio/wav
any ideas?? - because I am stumped! THANKS!Nate Smith
10/12/2022, 4:50 PMNate Smith
10/12/2022, 4:52 PMzackster
10/13/2022, 2:27 PMwil-shiftinsert
10/13/2022, 4:08 PM<cfscript>
field = deserializeJson('{
"validation": {
"id": 1180,
"regex": "somestring",
"mask": "",
"size": "",
"maxLength": "100"
}
}');
writeDump(
label="initial value",
var=field.validation.regex
);
writeDump(field.validation.regex === "somestring");
field.validation.regex = "somestring";
writeDump(
label="assigned empty string value",
var=field.validation.regex
);
writeDump(field.validation.regex === "somestring");
</cfscript>
so when doing a strict equality they are not the same. See somestring
here for the example. If we do the same with ACF2021, no problems.
Try it yourself
https://trycf.com/gist/2cd908188eab1e1a4d8460392a5a3a11/acf2021?theme=monokaiwil-shiftinsert
10/13/2022, 4:09 PMAsher Densmore-Lynn
10/13/2022, 4:24 PMzackster
10/14/2022, 1:54 PMrichard.herbert
10/14/2022, 5:23 PMSettings > Export
to create an Application.cfc
template but that doesn’t populate the Admin settings to then allow me to capture the settings in cfConfig for later.
Is there an XML file somewhere I can copy? Or something like the ACF .car files?Gareth
10/16/2022, 10:52 PMPeter Hoopes
10/18/2022, 6:08 PMcfsavecontent
to build a string list (don’t ask). When doing that, later using ListFind to locate an element in the list WILL NOT see the first element. It will see elements after the first and locate them properly. Demo code attached. This is running on Lucee 5.3.9.160. I’m seeing that the first express at the bottom equates to “0” (not found), while the second one does see the first element properly. Am I right here… if so, I’ll go ahead and submit a bug report?
<cfsavecontent variable="textList">
<cfloop from="1" to="4" index="i"><cfoutput>#i#,</cfoutput></cfloop>
</cfsavecontent>
<cfset newTextList = "1,2,3,4,">
<cfdump var="#textList#">
<cfdump var="#newTextList#">
<cfoutput>#listFind(textList,"1")#</cfoutput>
<cfoutput>#listFind(newTextList,"1")#</cfoutput>
zackster
10/19/2022, 9:31 AMtestUrl = "<http://127.0.0.1:8889/>";
http url="#testurl#";
http url=testurl;
line 2 and line 3 both produce the same bytecode with luceezackster
10/19/2022, 9:34 AMEric
10/19/2022, 2:10 PM