lib/filestack/utils/multipart_upload_utils.rb in filestack-2.3.0 vs lib/filestack/utils/multipart_upload_utils.rb in filestack-2.4.0

- old
+ new

@@ -232,11 +232,11 @@ # @param [FilestackSecurity] security Security object with # policy/signature # @param [Hash] options User-defined options for # multipart uploads # - # @return [Typhoeus::Response] + # @return [Hash] def multipart_upload(apikey, filepath, security, options, timeout, intelligent: false) filename, filesize, mimetype = get_file_info(filepath) start_response = multipart_start( apikey, filename, filesize, mimetype, security, options ) @@ -270,8 +270,8 @@ end } rescue raise "Upload timed out upon completion. Please try again later" end - response_complete.body + JSON.parse(response_complete.body) end end