FoxInCloud
download file - name problem
Gravatar is a globally recognized avatar based on your email address. download file - name problem
  Vincent H.
  All
  Feb 10, 2021 @ 11:58pm

Hi Thierry,

I cannot download this file regardless of its content: note cap atl.pdf

Related to \n ?

Gravatar is a globally recognized avatar based on your email address. re: download file - name problem
  FoxInCloud Support - Thierry N.
  Vincent H.
  Feb 13, 2021 @ 06:56am

Hi vincent,

You're right, in this specific case we should not replace \n by CRLF.

Please try this fix:

modify command awTxt.prg

&& Replace:

* -------------------------------------------------------------
PROCEDURE uValueJS_String
LPARAMETERS tcValue && {fr} Chaîne de chaîne en littéral JS

local result as string

result = Alltrim(m.tcValue, '"')

return Strtran(;
	  Iif(Lenc(m.result) = Lenc(m.tcValue);
	  , Strtran(Alltrim(m.result, "'"), "\'", "'");
	  , Strtran(m.result, '\"', '"');
	  );
	, '\n';
	, CRLF;
	)
endfunc

&& by:

* -------------------------------------------------------------
PROCEDURE uValueJS_String
LPARAMETERS tcValue && {en} JavaScript Literal string {fr} Chaîne littérale JavaScript

local result as string

result = Alltrim(m.tcValue, '"')
result = Iif(Lenc(m.result) = Lenc(m.tcValue);
  , Strtran(Alltrim(m.result, "'"), "\'", "'");
  , Strtran(m.result, '\"', '"');
  )
return Iif(lPath(m.result); && modify command abFile.prg
  , m.result;
  , Strtran(m.result, '\n', CRLF);
  )
endfunc
Gravatar is a globally recognized avatar based on your email address. re: download file - name problem
  Vincent H.
  FoxInCloud Support - Thierry N.
  Feb 13, 2021 @ 08:17am

It works Thierry, Thanks

© 1996-2024