opentiny / opentiny/tiny-editor

🐛 [Bug]: 文件(图片)无法识别.zip文件。上传服务器后,点击下载时,名称有误

Open
#286 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
535
Forks
71
Avg merge
6h 50m
Merged PRs (30d)
2

Description

Version

^3.25.4

Link to minimal reproduction

Step to reproduce

文件上传模块,无法识别.zip(压缩文件中另外试了rar,7z都是正常的,非压缩文件都可以)文件,无法触发uploadOption中的fileUpload,如果在fileAccept中配置了‘.zip’,那么zip文件就正常了,但是其他就出现问题了*(我设置了['.*','.zip'],试了txt文件,fileUpload无法触发)。且上传成功后点击下载时,无法获取正确的文件名称,图片同理,且文本类文件浏览器会直接打开,并没有触发下载(谷歌最新版本)

What is expected

No response

What is actually happening

No response

What is your project name

Any additional comments (optional)

No response

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

Start with the file upload module and the uploadOption/fileAccept behavior described in the report, then inspect the download handling for uploaded files and images. Done means .zip files trigger fileUpload without breaking other file types, downloaded names are preserved, and text files download instead of opening in Chrome.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.