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
Where does this happen? Using which method? Can you describe more?
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
We need to debug on a repro case.
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)
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"
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
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.
Yes, but these are the users' files
Hi Thierry,
Do you plan to integrate the proposed correction in the next update ?