2
我正在嘗試配置OneupUploaderBundle。根據本細則的 github,給出的配置是:如何配置OneupUploaderBundle?
oneup_uploader:
mappings:
gallery:
frontend: blueimp # or any uploader you use in the frontend
對於這個配置,我得到這個錯誤:
Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "_uploader_upload_gallery" as such route does not exist.") in "MinnAdsBundle:Motors:oneup.html.twig" at line 25.
我試圖通過增加這個配置(如mentionned來解決這個問題GitHub的)變成這個樣子:
oneup_uploader:
mappings:
gallery:
frontend: blueimp # or any uploader you use in the frontend
resource: .
type: uploader
的obtaind錯誤是:
InvalidConfigurationException: Unrecognized options "resource, type" under "oneup_uploader"
所以,我想知道我在這個包的配置中錯過了什麼。
爲了您的信息,我裝在我的symfony項目的版本是:
"oneup/uploader-bundle": "1.3.1"
感謝你的幫助。
你能告訴我什麼「啓用動態路由」選項完全沒有? – CoachNono 2015-02-16 13:58:35
當然。基本上它會在路由器上註冊一個路由'/ _upload/{mapping}'''''''''''''''''''''''''''''''''這不是一個可選的步驟。 – devsheeep 2015-02-16 15:38:48
所以基本上這將是您發送上傳文件的網址?或者我錯過了什麼 – CoachNono 2015-02-16 16:54:19