Skip to content

[t-upload] 微信开发者工具无法上传文件 #4620

Closed

Description

@CZ-2020

选择框架

@tdesign/uniapp

NPM 包版本

10.9.3

基础库调试库版本(如果出现问题的框架为 tdesign-miniprogram,请提供基础调试库版本)

No response

重现链接

No response

重现步骤

Image Image

直接使用uni.chooseMedia可以上传,开发者工具版本2.02.2608060

期望结果

No response

实际结果

No response

补充说明

No response

Activity

  1. github-actions commented on Aug 27, 2026

    @github-actions
    Contributor

    👋 @CZ-2020,感谢给 TDesign 提出了 issue。
    请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

  2. novlan1 commented on Sep 3, 2026

    @novlan1
    Collaborator

    无法复现,是不是使用的不对,给个复现代码

  3. CZ-2020 commented on Sep 4, 2026

    @CZ-2020
    Author

    首先真机是没问题的,微信开发者工具也是在升级后才出现的报错。报错是组件传入的config属性导致的,之前截图的...config触发的
    const uploadConfig = ref({
    sizeType: ['compressed'],
    sourceType: ['album'],
    });
    <t-upload
    :files="files"
    :config="uploadConfig"
    :media-type="props.mediaType"
    :max="props.max"
    :source="uploadSource"
    :request-method="batchUploadFiles"
    @success="handleUploadSuccess"
    @remove="handleRemove"
    />

  4. novlan1 commented on Sep 4, 2026

    @novlan1
    Collaborator

    首先真机是没问题的,微信开发者工具也是在升级后才出现的报错。报错是组件传入的config属性导致的,之前截图的...config触发的 const uploadConfig = ref({ sizeType: ['compressed'], sourceType: ['album'], }); <t-upload :files="files" :config="uploadConfig" :media-type="props.mediaType" :max="props.max" :source="uploadSource" :request-method="batchUploadFiles" @success="handleUploadSuccess" @remove="handleRemove" />

    @CZ-2020 那就是开发者工具自己的问题吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions