VintaSoft Imaging .NET SDK and Plug-ins Discussions

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

Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

Handling of space and special characters in filenames



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.


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


Page 1 from 1: 1