Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

n-upload 上传失败后点击重试,请求 body 中的 file 会变成 null #1316

Closed
ManiaJack opened this issue Oct 11, 2021 · 1 comment
Labels
bug Something isn't working priority: high

Comments

@ManiaJack
Copy link
Contributor

TuSimple/naive-ui version (版本)

2.19.5

Vue version (Vue 版本)

3.2.9

Browser and its version (浏览器及其版本)

Chrome(94.0.4606.61)

System and its version (系统及其版本)

Windows 10 Build 19043.1237

Node version (Node 版本)

v14.15.2

Reappearance link (重现链接)

https://codesandbox.io/s/broken-fast-sifhc?file=/src/App.vue

Reappearance steps (重现步骤)

  1. 向一个不存在的地址上传一个文件,文件会展示为失败状态。
  2. 此时点击文件列表右侧的重试按钮,会重新发送请求。

Expected results (期望的结果)

在点击重试后,请求正常携带原文件。

Actual results (实际的结果)

在点击重试后,请求 body 中的 file 为 null。

Remarks (补充说明)

第一次上传时服务出现问题,所以直接失败了,重启服务后点了重试,服务报错了,发现文件为 null

@github-actions github-actions bot added the untriaged need to sort label Oct 11, 2021
@07akioni 07akioni added bug Something isn't working and removed untriaged need to sort labels Oct 11, 2021
@07akioni
Copy link
Collaborator

@Volankey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: high
Projects
None yet
Development

No branches or pull requests

2 participants