內容簡介
給 WPForms 增加了自訂檔案上傳欄位外掛,讓使用者可以透過前端表單上傳檔案(例如 PDF、圖片、文件),限制檔案類型和大小,安全地存儲上傳的檔案到 WordPress 上傳目錄中,並能夠選擇將檔案附加到電子郵件通知中。
### 問題與答案
- 如何在 WPForm 中添加檔案上傳欄位?
- 編輯或創建 WPForm,將「檔案上傳」欄位拖放到表單中即可。
- 如何配置檔案上傳欄位的設置?
- 允許的檔案類型:指定擴展名(例如 pdf、jpg、png)。
- 最大檔案大小:設置限制(例如 10MB)。
- 儲存位置:檔案保存在 /wp-content/uploads/wpxform-uploads/ 中。
- 如何將檔案附加到電子郵件通知?
- 在表單的通知設置中啟用「附加檔案到郵件」選項。
- 這個外掛具有哪些功能?
- 支援拖放式檔案上傳。
- 伺服器端驗證檔案類型和大小。
- 使用獨特檔名以防止衝突。
- 相容於 WPForms Lite/Pro.
外掛標籤
開發者團隊
② 後台搜尋「File Upload For WPForms – Filenzo」→ 直接安裝(推薦)
原文外掛簡介
This plugin adds a custom File Upload Field to WPForms, enabling users to:
– Upload files (e.g., PDF, images, documents) via frontend forms.
– Restrict file types and sizes.
– Securely store uploaded files in the WordPress uploads directory.
– Attach files to email notifications (optional).
Usage
Add the File Upload Field to a Form:
Edit or create a WPForm.
Drag and drop the “File Upload” field into your form.
Configure Field Settings:
Allowed File Types: Specify extensions (e.g., pdf, jpg, png).
Max File Size: Set a limit (e.g., 10MB).
Storage Location: Files are saved to /wp-content/uploads/wpxform-uploads/.
Attach Files to Email Notifications (Optional):
Enable the “Attach Files to Email” option in the form’s Notifications settings.
Features
Drag-and-drop file upload support.
Server-side validation for file types and sizes.
Unique filenames to prevent conflicts.
Compatible with WPForms Lite/Pro.
Pro Addons
Advanced Filedrop For WPForms
Add Drag and Drop File Uploads to WPForms
