Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
问题是处理文件类型字段。
通过这样做,我现在将该字段设为“浏览以上传文件”以节省时间。如果有人有例子,我不知道如何正确处理它。会非常有用。
食谱有一个很好的教程
http://symfony.com/doc/current/cookbook/doctrine/file_uploads.html
加上参考中的更多基础知识
http://symfony.com/doc/current/reference/forms/types/file.html