Bluebeam Revu => Revu Studio / Sessions => Topic started by: svadaviya on July 24, 2019, 05:48:01 AM

Title: Bluebeam uploaded document to session through API seems corrupt
Post by: svadaviya on July 24, 2019, 05:48:01 AM
1. I have initiated new bluebeam session using rest api https://studioapi.bluebeam.com/publicapi/v1/sessions.

2. Added file to session using following apis
a. Create Metadata Block
cURL https://studioapi.bluebeam.com/publicapi/v1/sessions/123-456-789/files \
-H "Authorization: Bearer {valid access_token}" \
-H "Content-Type: Application/JSON" \
-d '{
      "Name":"Pied_Piper_Acquisition.pdf",
      "Source":"https://portfolio.raviga.com/primarybets/piedpiper/legaldocs/Pied_Piper_Acquisition.pdf"
}' \
-X POST

b. Upload the file to AWS
c. Confirm Upload
cURL https://studioapi.bluebeam.com/publicapi/v1/sessions/123-456-789/files/1234567/confirm-upload \
-H "Authorization: Bearer {valid access_token}" \
-X POST

uploaded document can be seen to bluebeam session but can not be opened. it giving alert like
Error 1 opening file.
Could not open '12803289' because it is either not a supported file type or the file has been corrupted.   For example, it was sent as an email attachment and wasn't correctly decoded.

Any help will be highly appreciated.

Thanks
-Sumit Vadaviya