Tencent / Tencent/tdesign-miniprogram

[Upload] 是否有Event事件可以获取到file类型的数据,用于上传到后端

Open
#2,316 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vue
Stars
1.8k
Forks
337
Avg merge
1d 21h
Merged PRs (30d)
19

Description

这个功能解决了什么问题

我在文档中除了action字段是与后端有联系的,但是现在需要获取到图片file类型的数据,装载到formData上再发起自定义请求。但是目前的add、success、remove事件获取的信息是一个json对象。

你建议的方案是什么

希望增加一个事件回调用于获取上传的文件数据。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No implementation file or test is named. Start by tracing the upload component's add, success, and remove event definitions and documentation; done means a documented callback exposes the selected file data for FormData-based custom requests, with coverage for the new event.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.