![](/img/trans.png)
[英]Postman and Silverstripe API endpoint multipart form with file upload
[英]Silverstripe TTF file upload
我正在嘗試一個上載字段將TTF文件上載到我的網站。 但是,當嘗試上傳失敗時,它說是禁止的 。
我如何有上載字段來僅上載TTF文件。
您必須通過將File
類添加到配置中(例如在mysite / _config / config.yml中)來告訴File
類允許該文件類型:
File:
allowed_extensions:
- ttf
您還必須在/assets/.htaccess中將其列入白名單
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.