內容簡介
這款外掛讓使用者可以透過 AJAX 從 WordPress 網站上的表單提交多個檔案到 WordPress 預設上傳資料夾,並將附件新增到 WordPress 媒體庫。
外掛包含一個簡碼 [wp-multi-file-uploader],供在文章編輯器中建立表單時使用,以及一個函數,供在範本檔案的表單中使用 wp_multi_file_uploader();。
外掛首頁:http://danholloran.me/WPMultiFileUploader/
這個外掛未提供的功能:此外掛並不會確認使用者是否被允許新增檔案,但預設會限制檔案類型為 WordPress 支援的檔案類型,且已更新為使用動態方式取得 WordPress 安裝所支援的檔案類型。上傳檔案的大小限制現在限制為 WordPress 或 PHP INI 的限制,這一點可以更改。目前它與 WordPress 表單製作外掛是不相容的,如果您整合了它,請告訴我並提交一個拉取請求,這是我想要最終整合的功能。
簡碼和函數都接受兩個參數。
allowed_mime_types 接受以逗號和空格區分的列表,例如:jpg、png、gif。
max_file_size 接受檔案大小(以 MB 為單位)例如:4 = 4mb
特別感謝:此專案包括優秀的檔案上傳器,位於https://github.com/valums/file-uploader,如果您的專案已包含在內,而我並未將您加入,請讓我知道,謝謝。
如果您有任何問題,請提交問題或修正問題/提交拉取請求,我會儘快處理。您也可以透過電子郵件聯繫我:[email protected]。
1.1.1
修復簡碼解析錯誤
1.1.2
修復圖像上傳未建立所有附件大小的問題
1.1.3
修正上傳視訊檔案失敗的問題,修正未建立正確的圖像大小的問題。
1.1.4
修正不允許上傳檔案副檔名為大寫的問題。
1.1.1
修復簡碼解析錯誤
1.1.2
修復圖像上傳未建立所有附件大小的問題
1.1.3
修正上傳視訊檔案失敗的問題,修正未建立正確的圖像大小的問題。
1.1.4
修正不允許上傳檔案副檔名為大寫的問題。
外掛標籤
開發者團隊
原文外掛簡介
Allows a user to submit multiple files from a form on your WordPress site via AJAX to WordPress default uploads folder and adds an attachment to the
Wordpress media gallery. Includes a shortcode [wp-multi-file-uploader] for use in a form created in the post editor and a function for use in a form in a template file wp_multi_file_uploader();.
Plugin Home Page: http://danholloran.me/WPMultiFileUploader/
What this plugin does not do: This plugin does not make sure that the user is allowed to add a file but it does restrict the file type to the WordPress supported file types by default, this has been updated to dynamically get the supported file types for your WordPress install. The file upload size limit is now restricted to either the WordPress or PHP INI limit this can be changed. It also does not play nice at the moment with WordPress form building plugins, if you integrate it with one please let me know and submit a pull request this is a feature I would like to eventually get integrated.
Both the short code and the function accept 2 parameters.
allowed_mime_types accepts a comma separated white space sensitive list, ex: jpg,png,gif
max_file_size accepts the file size in megabytes ex: 4 = 4mb
Thanks to: This project incorporates the excellent file uploader at https://github.com/valums/file-uploader, if your project is included and I do not have you added please let me know, thank you.
If you have any issues please submit an issue or fix it/submit a pull request I will try to handle it ASAP. You an also contact me at [email protected].
1.1.1
Fixed extract error with shortcode
1.1.2
Fixed image uploads not creating all the attachment sizes
1.1.3
Fixed issue with upload failing for video files. Fixed issue with not creating correct image sizes.
1.1.4
Fixed files with uppercase extensions not allowed to be uploaded.
1.1.1
Fixed extract error with shortcode
1.1.2
Fixed image uploads not creating all the attachment sizes
1.1.3
Fixed issue with upload failing for video files. Fixed issue with not creating correct image sizes.
1.1.4
Fixed files with uppercase extensions not allowed to be uploaded.
