Handling of space and special characters in filenames

Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.

Moderator: Alex

nurhusnina
Posts: 1
Joined: Tue Sep 30, 2025 4:32 am

Handling of space and special characters in filenames

Post 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.
Yuri
Posts: 65
Joined: Wed Jul 23, 2008 2:47 pm

Re: Handling of space and special characters in filenames

Post 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