microsoft / OCR-Form-Tools

A set of tools to use in Microsoft Azure Form Recognizer and OCR services.
MIT License
519 stars 174 forks source link

Do not uses slashes in blob name #1019

Closed ctstone closed 2 years ago

ctstone commented 2 years ago

Currently FOTT submits Analyze Layout requests to the service as:

{ "url": "https://account.blob.core.windows.net/container/folder%2Ffile.pdf" }

This is due to JS Azure Storage SDK using encodeURIComponent instead of encodeURI for the blob name.

This change ensures that Asset paths use encodeURI for the blob name:

{ "url": "https://account.blob.core.windows.net/container/folder/file.pdf" }