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

不同的模型实例上传的图片放到不同的文件夹。 #108

Open
chauncy-sue opened this issue Jul 1, 2020 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@chauncy-sue
Copy link

例如User表里面Joe创建了一篇文章,并上传了图片。该文章是表Blog的一个实例,实例名为blog1。我希望它上传的图片放在:Joe/blog1/xxx.img。 如果还有新的文章创建,比如blog2,它的图片存到Joe/blog2/xxx.jpg。 就是说,希望图片上传位置可以动态设定,而不是萌萌的全扔到media里面。

@pylixm
Copy link
Owner

pylixm commented Jul 3, 2020

这个实现起来不难,可以修改上传保存逻辑。回头我可以添加下,也欢迎你提交PR。

@pylixm pylixm added the enhancement New feature or request label Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants