Hello,
I'm having a major problem with a Power Pages site in production and I'm looking for advice on how to solve the problem. As of today (no changes made lately), the method I was using to specify file names during uploads has stopped working, causing the file upload to crash. Previously, I used the x-ms-file-name request parameter to set file names when downloading via an API call, as follows:
webapi.safeAjax({
type: "PUT",
url: "/_api/cg_commandes([commande_id])/cg_fichierstl?x-ms-file-name=FileName.stl",
...
});
However, this approach now results in a 404 (Not Found) error, specifically stating that the x-ms-file-name query parameter is not supported. Removing this parameter allows the request to go through, but then I lose the ability to set the file name, which is crucial for my application's functionality.
In this situation, I'm looking for advice (urgent if possible) on how to specify file names in this situation. Is there a new recommended method for doing this, or a workaround that you are aware of? Any ideas or suggestions would be greatly appreciated!
Thank you in advance for your help,
Charles