Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Bluebeam uploaded document to session through API seems corrupt  (Read 5265 times)

svadaviya

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 1

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

Logged