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

Gravatar is a globally recognized avatar based on your email address. re: wFileSaveAs
  Vincent H.
  FoxInCloud Support - Thierry N.
  May 26, 2021 @ 08:09am

Hi Thierry,

Old topic, same subject.

I think you have not integrated the proposed code in your message, my PDF being again systematically deleted.

Gravatar is a globally recognized avatar based on your email address. re: wFileSaveAs
  FoxInCloud Support - Thierry N.
  Vincent H.
  May 27, 2021 @ 02:58am

I think you have not integrated the proposed code in your message

You can simply check by yourself in awServer.prg

For me it's OK

Gravatar is a globally recognized avatar based on your email address. re: wFileSaveAs
  Vincent H.
  FoxInCloud Support - Thierry N.
  May 27, 2021 @ 03:06am

I had searched with the comment line ...
With .FileSaveAs (MyPdf, "", .T., .T.) The file is deleted

Gravatar is a globally recognized avatar based on your email address. re: wFileSaveAs
  FoxInCloud Support - Thierry N.
  Vincent H.
  May 27, 2021 @ 03:08am

do you have a session open for this user?

Gravatar is a globally recognized avatar based on your email address. re: wFileSaveAs
  Vincent H.
  FoxInCloud Support - Thierry N.
  May 27, 2021 @ 03:22am

Yes, always (it's in "Suite")

Gravatar is a globally recognized avatar based on your email address. re: wFileSaveAs
  FoxInCloud Support - Thierry N.
  Vincent H.
  May 27, 2021 @ 03:23am

Can you reproduce the issue?

Gravatar is a globally recognized avatar based on your email address. re: wFileSaveAs
  Vincent H.
  FoxInCloud Support - Thierry N.
  May 27, 2021 @ 03:38am

Yes, systematically. I'll try to send you an example

Gravatar is a globally recognized avatar based on your email address. re: wFileSaveAs
  FoxInCloud Support - Thierry N.
  Vincent H.
  May 27, 2021 @ 04:48am

Please keep this repro scenario for a future support session

© 1996-2021