ElemeFE / ElemeFE/element

[Feature Request] Upload component, Response Headers missing in "on-success" attribute function

Open
#17,359 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Existing Component
Yes

### Component Name
Upload

### Description
The `on-success` hook function when uploaded the upload is successful returns:

`function(response, file, fileList)`

But the `response` only contains the payload, it does not contain any headers. Having access to the header could be used to update the authentication token that gets passed via the response headers that are updated on every api call.

Is there any known way to get the headers in the hooked `on-success` function?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.