FoxInCloud
wFileSaveAs()
Gravatar is a globally recognized avatar based on your email address. wFileSaveAs()
  Vincent H.
  All
  May 26, 2021 @ 07:22am

Hi Thierry,

I have a problem downloading files whose name contains a period. Ex:

Mpop = C:\ ...\Dossiers\5UF0PPXCK\Ann. 3 - Déclaration d'intention d'aliéner - sno_5uf0ppxck[1].pdf
wFileSaveAs(Mpop)

loads http://localhost/snotest/Temp/Ann.pdf?

Thanks in advance

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

Where does this happen? Using which method? Can you describe more?

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

I have a list of files and I run THISFORM.wFileSaveAs(MyPDF) && Without other arguments

My list is like this:

  • Ann. 1 - Attestation ...
  • Ann. 2 - Courrier ... ...

MyPDF is existing and I view it. But the URL is : http://localhost/snotest/Temp/Ann.pdf?

So, if I want to see another one in my list, it lauch the first one with the same URL

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

We need to debug on a repro case.

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

I inserted a suspend in awserver.prg:

PROCEDURE FileToSiteTempDir
...
		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)

tcFile = "C:\VHDEV\APPLI\SUITENOT\Dossiers\5UF0PPXCK\Ann. 1 - Lettre au maire - sno_5uf0ppxck[1].pdf"

lcFileDest = "C:\VHDev\Appli\Suitenot\Site\snoTest\Temp\Ann.pdf"

lcFileDest text is limited (after point)

Gravatar is a globally recognized avatar based on your email address. re: wFileSaveAs()
  Vincent H.
  Vincent H.
  May 28, 2021 @ 02:20am

I have already encountered the problem: you should not use Forceext () in this case (bug VFP ?)

lcFileSrce = "C:\VHDev\Appli\Suitenot\Dossiers\5UF0PPXCK\Ann. 1 - Lettre au maire - sno_5uf0ppxck[1].pdf"

JustStem(m.lcFileSrce) = "Ann. 1 - Lettre au maire - sno_5uf0ppxck[1]"
But !
ForceExt(JustStem(m.lcFileSrce), "txt") = "Ann.txt"

Gravatar is a globally recognized avatar based on your email address. re: wFileSaveAs()
  Vincent H.
  Vincent H.
  May 29, 2021 @ 12:39am
      lcFileDest = ForcePath(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
       , m.this.cTempPathPhysical);
       + "." + JustExt(m.lcFileSrce)

does the job

Gravatar is a globally recognized avatar based on your email address. re: wFileSaveAs()
  Tore Bleken
  Vincent H.
  May 29, 2021 @ 01:18am

Using spaces in a file or folder name has have many unexpected side effect. I avoid it like the plague. I prefer to use underscore instead.

Gravatar is a globally recognized avatar based on your email address. re: wFileSaveAs()
  Vincent H.
  Tore Bleken
  May 29, 2021 @ 04:47am

Yes, but these are the users' files

Gravatar is a globally recognized avatar based on your email address. re: wFileSaveAs()
  Vincent H.
  Vincent H.
  Jun 3, 2021 @ 02:09am

Hi Thierry,

Do you plan to integrate the proposed correction in the next update ?

Gravatar is a globally recognized avatar based on your email address. re: wFileSaveAs()
  FoxInCloud Support - Thierry N.
  Vincent H.
  Jun 4, 2021 @ 01:13am

Hi Vincent

Great point about forceext()

On vacation this week, will review and probably integrate next week.

© 1996-2024