8 Replies Latest reply on Jan 15, 2019 6:54 PM by Mahmoud_Rabie

    Google Drive REST API v3 - Resumable Upload

    Mahmoud_Rabie

      Hello Everybody,

       

      Given

      - APEX 18.2

      - Google Drive Simple Upload works perfect with make_rest_request

      - Initiating a Google Drive Resumable Upload gives empty response!

       

      Problem

      Although the DEBUG gives OK result, The CLOB result of make_rest_request is null !!!

      1.294010.00094
      make_rest_request p_url=>https://www.googleapis.com/upload/drive/v3/files?uploadType=resumable,p_http_method=>POST,p_body=>{"name": "first.txt"}
      8

      0%

      1.294950.00572
      clear_response_status_and_hdrs
      8

      0%

      1.300670.54907
      set_proxy_server p_proxy_override=>
      8

      20%

      1.849740.00099
      set_response_status_and_hdrs status_code=>200,reason_phrase=>OK
      8

      0%

      1.850730.00085
      Header X-GUploader-UploadID: AEnB2Uojb6T53jY4Z0lLIkfy_OpAb2-yGTjJyhikVOTNBmW5MICIkyCq6VEgfSBfUrJqTVU5Yjjw1BA7CHKO-UVa_I4w4xb1NQ
      9

      0%

      1.851580.00084
      Header Location: https://www.googleapis.com/upload/drive/v3/files?uploadType=resumable&upload_id=AEnB2Uojb6T53jY4Z0lLIkfy_OpAb2-yGTjJyhikVOTNBmW5MICIkyCq6VEgfSBfUrJqTVU5Yjjw1BA7CHKO-UVa_I4w4xb1NQ

       

      Reference

      https://developers.google.com/drive/api/v3/resumable-upload

       

      I would appreciate your help

       

      Carsten Czarski-Oracle

       

      Regards

      Mahmoud