formio / formio.js

JavaScript powered Forms with JSON Form Builder
https://formio.github.io/formio.js
MIT License
1.83k stars 1.05k forks source link

add conditional to check for new headers object #5476

Closed brendanbond closed 5 months ago

brendanbond commented 5 months ago

Link to Jira Ticket

n/a

Description

At some point a change was made on the client and on the server which added a headers object to the Enterprise Server's presigned url response to S3 upload requests. These changes didn't account for older deployments, which may not include the headers object, which results in a TypeError on newer clients that are connected to older server environments (see #5475 e.g.). This PR adds a simple conditional which should skip the new client logic if the headers object does not exist.

Breaking Changes / Backwards Compatibility

n/a

Dependencies

n/a

How has this PR been tested?

n/a

Checklist: