GithubHelp home page GithubHelp logo

上传附件出错 about candy HOT 5 CLOSED

guo-yu avatar guo-yu commented on September 25, 2024
上传附件出错

from candy.

Comments (5)

goxofy avatar goxofy commented on September 25, 2024

这个问题我也遇到了。。

是由于candy不能自动创建uploads目录引起的,我手动mkdir这个目录之后就正常了。

@turingou

from candy.

guo-yu avatar guo-yu commented on September 25, 2024

恩,是我在gitigore里忽略了这个文件夹下的东西,要手动建立一个~ 可能遇到权限问题~

我在想要不要把附件上传按日期归类,如果这个功能做了,就不存在这个问题了

from candy.

goxofy avatar goxofy commented on September 25, 2024

挺好的,或者按照节点来分类也可以

from candy.

jilen avatar jilen commented on September 25, 2024

@turingou git默认会忽略空的文件夹,可以touch一个空的文件在uploads里。比如叫.gitkeep什么的

from candy.

guo-yu avatar guo-yu commented on September 25, 2024

@jilen 考虑在框架里 ensure 这个文件夹,如果没有就自动新建,这个在 express-scaffold 下一个版本会支持

from candy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.