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

删除临时图片文件 #450

Open
0reoo opened this issue Sep 6, 2022 · 1 comment
Open

删除临时图片文件 #450

0reoo opened this issue Sep 6, 2022 · 1 comment

Comments

@0reoo
Copy link

0reoo commented Sep 6, 2022

导出数据有一列是图片,数据库中存的是图片url,在导出时我先将url下载到本地文件,再insertImage,然后再删除本地文件,会提示我
[WARNING]: Error adding image to xlsx file: file doesn't exist or can't be opened: /tmp/DrawingKzF85d.png
如果不执行删除文件是没问题的,看上去写入图片像是异步的,我该怎样才能删除临时的图片文件

@lait233
Copy link

lait233 commented Nov 11, 2022

把要删除的图片加入延迟队列。预算一下excel多久会导出成功。比如延迟1小时删除临时图片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants