I’m trying to use the REST API to upload an image file to the Stock Items record, where the image is provided from an https URL. I’m using this PUT call (on my local dev instance):
<code>http://localhost/Acumatica/entity/Default/23.200.001/StockItem/010005/Files/https://client.blob.core.windows.net/sitedocs/imagegallery/lineart/a-sample-image-1.jpg
</code>
<code>http://localhost/Acumatica/entity/Default/23.200.001/StockItem/010005/Files/https://client.blob.core.windows.net/sitedocs/imagegallery/lineart/a-sample-image-1.jpg
</code>
http://localhost/Acumatica/entity/Default/23.200.001/StockItem/010005/Files/https://client.blob.core.windows.net/sitedocs/imagegallery/lineart/a-sample-image-1.jpg
I get the following error:
<code>[HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (:).]
</code>
<code>[HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (:).]
</code>
[HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (:).]
How can I get around this? Can I not obtain an image from an https URL as I’m trying to do?
What would be a good alternative?
Thanks much…