[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
TempFileManager with Filenames that include special chars  XML
Forum Index -> Development
Author Message
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 744
Offline

Hi,

would it be possible to adapt the TempFileManager.saveTempFile() method so you can use filenames that contain blanks or special chars? I tried to url encode the filename but the result was not that good ;-)

BR
Markus
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5510
Offline

Hi Markus,

yes you are right - the document type was not considered anymore when using "strange" file names and the names were "even stranger" in the file name proposed for download...

We did a fix.

If you want to have the fix immediately: 20230426_INT was just uploaded (Maven repository)... Otherwise: it is part of next update.

Thanks + Regards! Björn

Björn Müller, CaptainCasa GmbH
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 744
Offline

I'm sorry, but I still get a Bad Request 400

this is the generated URL
http://localhost:50000/balecon/cctempfileaccess/394d2abf-6a26-4849-a36c-9dcba8d02303/K%C3%A4sesp%C3%A4tzle%20VCC.pdf?cc_subpageId=1683050044536/67593;filename=/K%C3%A4sesp%C3%A4tzle%20VCC.pdf
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5510
Offline

Hi,

hmm, just tried:

Code:
 /cctempfileaccess/fa524adf-e2d0-41e7-b51a-28c1be0b09a6/Käsespätzle.txt;jsessionid=FD4532F03976794F1775B2A47B4BBCBC;filename=/Käsespätzle.txt


generated by

Code:
         m_url = TempFileManager.saveTempFile("Käsespätzle.txt","application/octet-stream",content.getBytes());
 


Sure that the new version is applied?

Kind regards! Björn

PS: otherwise use "Kasspatzen"!

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team