You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have made something based on the file Upload sample and no problem when uploading binary files like pictures.
When I try to upload a specific pdf file I get this error :
No mapping for the Unicode character exists in the target multi-byte code page>
the code I use is the same lFile := TFile.Create(lFName); lFile.CopyFrom(Context.Request.Files[0].Stream, 0);
Any idea ?
Best regards
The text was updated successfully, but these errors were encountered:
Hi Daniele,
You're right the in the sample it works but I use the swagger in my side.
using this parameter
[MVCSwagParam(plFormData, 'file', 'File to upload', ptFile, False)]
Best regards
Daniele,
I have finally found where the problem is and reproduced it with the sample.
I use the MiddleWare Trace (MVCFramework,MVCFramework.Middleware.Trace).
If I do MVC.AddMiddleware(TMVCTraceMiddleware.Create);
Hi,
I have made something based on the file Upload sample and no problem when uploading binary files like pictures.
When I try to upload a specific pdf file I get this error :
the code I use is the same
lFile := TFile.Create(lFName); lFile.CopyFrom(Context.Request.Files[0].Stream, 0);
Any idea ?
Best regards
The text was updated successfully, but these errors were encountered: