FoxInCloud
wFileSaveAs
Gravatar is a globally recognized avatar based on your email address. wFileSaveAs
  Vincent H.
  All
  Oct 15, 2020 @ 08:34am

Hi Thierry,

I used the new parameter in the following command and my file is always deleted.

Mform.wFileSaveAs(Mdocpdf, "", .F., .T.)

Ouch ...

Gravatar is a globally recognized avatar based on your email address. re: wFileSaveAs
  FoxInCloud Support - Thierry N.
  Vincent H.
  Oct 16, 2020 @ 12:55am

Please update as follows:

modify command awServer.prg
…
PROCEDURE FileToSiteTempDir
…
		lcFileSrce = cFileCased(m.tcFile, .T.)
		lnSecs = Datetime() - Fdate(m.lcFileSrce, 1)
		llTemp = lTrue(m.tlTemp) or m.lnSecs < 2 && {fr} secondes && {fr} fichier temporaire ... && 2020-10-16 thn -- {FiC V 2.31.0-beta.6} {en} modified
		lcFileDest = ForcePath(ForceExt(JustStem(m.lcFileSrce);
		  + Iif(m.llTemp and wlSession(@m.oSession), '_' + m.oSession.oData.sessionID + '_' + cY_M_D_H_M_S(Datetime()), ''); && 2019-05-14 thn -- {FiC V 2.28.1-beta.8} {en} added user's sessionID
		 , JustExt(m.lcFileSrce));
		 , m.this.cTempPathPhysical)
		llTemp = m.llTemp and !lTrue(m.tlFileKeep) && 2020-10-16 thn -- {FiC V 2.31.0-beta.6} {en} modified

… and use .T. as 3rd parameter: .wFileSaveAs(Mdocpdf, "", .T., .T.)

Gravatar is a globally recognized avatar based on your email address. re: wFileSaveAs
  Vincent H.
  FoxInCloud Support - Thierry N.
  Oct 17, 2020 @ 02:00am

OK Thierry, thanks

© 1996-2020