前言介紹
- 這款 WordPress 外掛「AJAX File Upload」是 2016-05-24 上架。
- 目前有 80 個安裝啟用數。
- 上一次更新是 2016-05-25,距離現在已有 3267 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.6 以上版本才可以安裝。
- 有 6 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
ajax | file | files | forms | shortcode |
內容簡介
這個外掛可以幫助您為您的網站添加上傳文件的功能,透過簡單的短代碼或自定義功能,設置最大上傳大小、允許的文件擴展名等等。
完全使用 AJAX,在一個優雅的方式下處理上傳,您只需要將短代碼添加到您的內容中,或在您的代碼中調用插件的自定義函數就可以了。
您可以在前端使用 [ajax-file-upload /*設置作為屬性*/] 短代碼來顯示快速媒體上傳按鈕,或在您的 PHP 模板中使用 do_shortcode('[ajax-file-upload ..]'),或使用內置函數 ajax_file_upload( $args ),當您在函數參數中設置設置為陣列時(對於混淆的情況,它們的作用就像短代碼屬性)。
一些功能:
上傳任何類型的媒體,只要您的設置允許,就容易方便
設置文件擴展名以限制上傳自定義擴展名的文件,例如圖像(jpg,png,gif,bmp..)
設置最大上傳大小,當用戶嘗試上傳較大的文件時,他們將收到一個通知(您完全可以自定義)
自定義權限上傳,您可以選擇允許某些用戶角色、僅限於已登錄的用戶或所有人上傳!
完全可擴展,並創建定制的 JavaScript 事件,您可以將其鉤住以獲取上傳數據設置、響應、文件和更多信息(請查看文檔)
您可以隨時在短代碼之間切換設置,您並不需要使用相同的設置,但是當短代碼設置為空或未設置唯一標識符屬性時,這種情況下,將使用默認設置(您可以在管理員中更改)。
此外,還支持子主題。您可以將整個插件文件夾複製到子主題中,然後修改 JavaScript、CSS 甚至短代碼模板和其他文件。基本上任何文件,除了主加載器文件。
這是一個完全免費和開源的插件。您可以對其進行貢獻,fork 它在 Github 上,將其包含在您的項目中等等,隨時都可以自由地這樣做。根據 GNU GPL 授權,就像主要的 WordPress 插件和 WordPress 本身。
如果您喜歡它,請在 WordPress 上給我們留下有用的評論,將其分享到社交媒體上並為 Github 存儲庫加星。提前感謝您!
有關更多有用的文檔,可以在 Github 上找到 https://github.com/elhardoum/AJAX-File-Upload,您可以隨時通過此聯繫表格聯繫我:http://samelh.com/contact/
原文外掛簡介
This plugin will help you add file upload feature to your site, set maximum upload size, allowed file extensions, and much more through a simple shortcode or a custom function.
Totally AJAX, your uploads will be processed faster and an elegant way. All you need to do is to add the shortcode to your content, or call the plugin’s custom function whithin your code and that’s it.
You can either use [ajax-file-upload /*settings as attributes*/] shortcode to display the quick media upload buttons in the front-end, or use do_shortcode('[ajax-file-upload ..]') in your PHP templates, or the built-in function ajax_file_upload( $args ) for which you should set the settings as an array in the 1 function parameter (those act like shortcode attributes, in case of confusion).
Some featues:
Upload any type of media as long as your settings allow, nice and easy
Set file extensions to let limit the uploads to only custom extensions, like for instance images (jpg,png,gif,bmp..)
Set maximum upload size and when a user tries to upload a larger file, they will get a notice (which you can totally customize)
Custom permission to upload, you can choose to allow uploads to certain user role, or logged-in users only, or everyone!
Fully extensible, and creates custom JavaScript events which you can hook into to get the upload data settings, response, file, and much more (view docs)
You can always switch between settings from a shortcode to another, you are not obliged to use the same settings, but when a shortcode’s settings are empty or the unique identifier attribute is not set then in this case, the default settings (you can change them in the admin) will be used.
Also, supports child theme. You can copy the entire plugin folder to your child theme and there modify the JavaScript, CSS, and even the shortcode template and other files. Basically any file except the main loader file.
This is totally free and open source plugin. You can contribute to it, fork it on Github, include it in your project and much more and always feel free to do so. Licensed under GNU GPL, just like major WordPress plugins and WordPress itself.
If you liked it, please leave us a useful review here on WordPress, share around the social media and star the Github repository. Thank you in advance!
More useful documentation can be found on Github https://github.com/elhardoum/AJAX-File-Upload and you can contact me anytime from this contact form: http://samelh.com/contact/
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「AJAX File Upload」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
0.1 | 0.1.1 | trunk | 0.1.1.1 |
延伸相關外掛(你可能也想知道)
Theme Editor 》主題編輯器 (Theme Editor) 允許您編輯主題文件、建立資料夾、上傳檔案,以及在主題和外掛中移除任何檔案和資料夾。您可以直接自訂主題和外掛。, 升級至專業...。
What The File 》What The File 是一個 WordPress 外掛,在您的工具列中增加了一個選項,顯示目前正在檢視的頁面所使用的文件和模板部分。, 您可以通過單擊文件名直接使用佈景...。
Phoenix Media Rename 》通過使用「Phoenix Media Rename」外掛,將您的媒體檔案重新命名,極大地提高您的 SEO。, 在Phoenix Media Rename 官方頁面上提供了完整的使用和設置指南。。
Media File Renamer: Rename for better SEO (AI-Powered) 》從儀表板直接重命名和移動檔案,可以逐個或批量進行操作,還可以設置自動重命名檔案的功能,提高 SEO、整理 WordPress、讓生活更美好。如需更多信息,請訪問...。
WordPress File Upload 》這個外掛讓你或其他使用者可以從任何頁面、文章或側邊欄輕鬆、安全地上傳檔案到你的網站。, 只需要在任何 WordPress 頁面/文章中加入簡碼 [wordpress_file_up...。
Simple File Downloader 》這個外掛將允許管理員在最簡單、無壓力的方式下向任何文章/頁面中添加下載連結。, 無需使用者限制,所有網站訪客都可以從您的網站下載任何文件。, 功能, , 在...。
Download Attachments 》Download Attachments 是 WordPress 的新型下載管理工具,它可以簡化界面、提供拖放和 AJAX 驅動的 metabox 來插入和管理您的媒體庫文件,然後通過自動或手動...。
WP-DownloadManager 》一般使用, , 您需要重新生成永久鏈接WP-Admin -> 設置 -> 永久鏈接 -> 儲存變更, 為了將一個特定的檔案嵌入文章/頁面中以供下載,請使用[download i...。
PDF Block 》這款 WordPress 外掛提供了簡單、不花俏的區塊,讓您可以輕鬆在網站上嵌入 PDF 檔案。完全免費、支援回應式設計,並專為 Gutenberg 編輯器打造。, , 您可以從...。
WP Better Attachments 》這款外掛讓你可以在文章編輯器中直接新增/編輯/附加/取消附加/刪除/排序WordPress文章附加的檔案。與WordPress無縫整合,使用預設的WordPress附件類型,完全...。
Store file uploads for Contact Form 7 》預設狀態下,Contact Form 7 不會保留通過其聯絡表單發送的數據。, 雖然像 Flamingo 這樣的外掛會保存這些數據,但上傳的文件並不會添加到媒體庫。, 這個外掛...。
WordPress File Monitor 》監視您的網站,以查看新加、更改和已刪除的檔案!跟蹤所有網站目錄中的變更,並在電子郵件中收到警報!免費保持安全!, 功能, , 監視檔案系統以查看新增/刪除...。
Custom Post Type Attachment 》, 這個外掛程式將允許您上傳檔案到您的文章或頁面或任何其他自訂文章類型中。, 您可以使用短碼或函數來顯示附件。, 只需安裝外掛程式並從 設置-> 自訂文章...。
Increase upload file size & Maximum Execution Time limit 》[ ✅ 由 Puvox 提供的安全插件 ] :, , • 為了安全起見,已進行修改以確保無漏洞。, • 高效,不會增加網站的負載或讓網站變慢。, • 不會收集私人數據。, ,...。
Delete Post with Attachments 》預設情況下,當您刪除文章或頁面時,該文章所關聯的媒體檔案或附件並不會被刪除。將這些孤立的檔案保留在您的伺服器上只會佔用大量寶貴的網路空間,而沒有任...。