Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

73. 组件设计-上传 #73

Closed
ly525 opened this issue May 9, 2018 · 0 comments
Closed

73. 组件设计-上传 #73

ly525 opened this issue May 9, 2018 · 0 comments

Comments

@ly525
Copy link
Owner

ly525 commented May 9, 2018

项目实践

  1. 使用 Jwt 的时候,需要注意在使用第三方的 upload 组件的时候,需要将header 传入组件,因为上传组件一般都自己封装了ajax 进行图片上传,也可以进行深入学习。
    一般可以将jwt封装在 axios 的拦截器中,但是需要注意的是,upload组件并没有使用axios ,因为拦截器对于上传组件并不生效,所以在改在http模块的时候,需要特别注意。
  2. 多文件上传与后端交互
    1. 如何同时将多个文件上传给后端?
    2. 参照 Ant Design 中的 demo
    3. FormData 中多次 append同一个key的实际效果是什么?
    4. 接上面:会形成key[0], key[1] 这种效果吗?
    5. 在一些网站的登录表单中,会有 files[0], files[1] 这种是什么意思?表单提交需要进行深入研究!
@ly525 ly525 changed the title 73. 组件设计-待定 73. 组件设计-上传 Jun 25, 2018
@ly525 ly525 added this to 组件库大纲 in 0.5 基础建设<组件库> Jan 19, 2020
Repository owner locked and limited conversation to collaborators Jan 23, 2024
@ly525 ly525 converted this issue into discussion #556 Jan 23, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
Development

No branches or pull requests

1 participant