BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
I tried to follow the syncfusion article here to rename images before inserting. I am using blazor webassembly. However, the response object from the ImageSuccessEventArgs is missing the headers. Why are these headers missing? Please see the screenshots below to see what I mean. Is there maybe another way to change the name of an image based on the server response?
Hi Samuel,
Greetings from syncfusion support,
We have validated the issue and confirmed that the image headers are being returned properly. To assist you better, I would like to request some additional information.
Could you please provide the following details to help us validate further:
Server end header added:
Response.Headers.Add("name", imageFile);
|
Screenshots:
We are here to help and would appreciate any information that can assist us in resolving this issue for you.
Regards,
Indrajith
Thank you for your fast reply and the sample. It turned out that the issue is because of a cross origin request (the endpoint for the image upload is on another domain). JavaScript, however, can only access a couple of headers in that case. Thats why my name header is missing. I can try to work around it by abusing the content-type header for the image name. This is ugly but might work.
It would be good if you can make the response body accessible through the ImageSuccessEventArgs.Response object and not only the headers. Is that something you can do for a future update?
We are glad that the headers are now returned properly. Regarding the response body return in imageSuccessEventArgs, since we have integrated syncfusion uploader component for the image upload action. We have already logged “Provide support for catch the returned response body in uploader component” as a feature request, and this support will be included in any one of our upcoming releases.
You can track the status of this feature from the below feedback link.
Feedback Link: https://www.syncfusion.com/feedback/36284