Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide exemple of use #5

Open
rchoffar opened this issue Aug 7, 2023 · 2 comments
Open

Provide exemple of use #5

rchoffar opened this issue Aug 7, 2023 · 2 comments

Comments

@rchoffar
Copy link

rchoffar commented Aug 7, 2023

Hi,
Could you please provide an exemple of how it's working ?
I have been trying with this:

{
    "values": [
        {
            "recordId": "",
            "data": {
                "documentContent": "inline",
                "documentUrl": "https://***.blob.core.windows.net/documents/test.txt",
                "documentUrlencoded": "https://***.blob.core.windows.net/documents/test.txt",
                "documentSasToken": "***",
                "documentContentType": "application/text"
            }
        }
    ]
}

But i didnt get it work.

This is the answer i get:

{
    "values": [
        {
            "recordId": "",
            "data": {
                "chunks": []
            },
            "errors": [],
            "warnings": []
        }
    ]
}

Thanks !

@CeyssensStef
Copy link

Hi

Following worked for me: (pdf document)

{
    "values": [
        {
            "recordId": "",
            "data": {
                "documentContent": "inline",
                "documentUrl": "https://***.blob.core.windows.net/documents/***.pdf",
                "documentSasToken": "?<sas-token>",
                "documentContentType": "application/pdf"
            }
        }
    ]
}

So the SAS needs to be prefixed with a '?'

@paulmoise
Copy link

Hi,

Please, can you share with me where you make this change (which file do you change and where do you upload your pdf document) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants