Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Undefined index: headers endpoint.php line 109 #11

Open
tychovbh opened this issue Oct 17, 2018 · 0 comments
Open

Undefined index: headers endpoint.php line 109 #11

tychovbh opened this issue Oct 17, 2018 · 0 comments

Comments

@tychovbh
Copy link

In endpoint.php on line 109 you can see the following code:
php $headersStr = $contentAsObject["headers"];

This key though "headers" doesn't exists. When I use the fineuploader library only "expiration" and "conditions" exists.

Somehow when I use this library for testing reasons, this doesn't trigger any errors and $headersStr will be null. But in a different implementation on production it triggers Undefined index: headers.

Can we fix this by checking the array for the header something like:

$headerStr = '';
if (isset($contentAsObject["headers"]) {
    $headerStr = $contentAsObject["headers"];
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant