Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

上传的图片,没有后缀,怎么解决?~~? #7

Open
listcvc opened this issue Mar 11, 2020 · 2 comments
Open

上传的图片,没有后缀,怎么解决?~~? #7

listcvc opened this issue Mar 11, 2020 · 2 comments

Comments

@listcvc
Copy link

listcvc commented Mar 11, 2020

UP主,上传的图片,没有后缀,怎么解决?~~?

@listcvc
Copy link
Author

listcvc commented Mar 11, 2020

还有~~~就是编辑或者新建后会多出一个一段,如下
例1:http://localhost:8080/?#/adminUsers/create
例2:http://localhost:8080/?file=?file=#/adminUsers/create

@chengazhen
Copy link

你可以自己加上后缀

 const suffix = path.extname(file.originalname)
        cb(null, `${defaultFileName}-${Date.now()}${suffix}`);

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

No branches or pull requests

2 participants