Page 1 of 1

Handling of space and special characters in filenames

Posted: Tue Sep 30, 2025 5:19 am
by nurhusnina
Hi,

I noticed that when opening documents in VintaSoft Document Viewer, if the original filename contains spaces or special characters, the file stored in the session folder gets renamed/replaced.
Could you clarify:
1. How does VintaSoft handle spaces and special characters in filenames by default? Does VintaSoft automatically normalize filenames by replacing spaces/special characters?
2. Is there a recommended way to preserve the original filename (including spaces or special characters) when storing into the session folder?

Thank you.

Re: Handling of space and special characters in filenames

Posted: Tue Sep 30, 2025 3:26 pm
by Yuri
Hi,

To override the file name escaping mechanism, please override the Vintasoft.Imaging.Web.Services.VintasoftFileWebService.GetSafeFileId method.

To override the used VintasoftFileWebService, please use the CreateWebService method override in your inheritor of Vintasoft.Imaging.AspNetCore.ApiControllers.VintasoftFileApiController/Vintasoft.Imaging.Web.Api2Controllers.VintasoftFileApi2Controller class.

Respectfully,
Yuri