讨论数量:
By default, the uploader will copy the source file while maintaining its original filename. You can override this behaviour by providing a custom filename.
默认情况下,上传者将复制源文件,同时保持其原始文件名。您可以通过提供自定义文件名来覆盖此行为。
MediaUploader::fromSource(...)
->useFilename('profile')
->upload();
推荐文章: