Writing a plugin which needs to upload files

admin2025-06-06  5

I am quite new to Wordpress development, and am writing a plugin which needs to have an option of uploading a spreadsheet, which the plugin will then work with and process data as appropriate.

This is for front end users, not in the admin area.

What is the best practice? Should I code an upload myself, or integrate another plugin, which my plugin calls and is dependent on? If the latter, any suggestions of a plugin????

Thank you

I am quite new to Wordpress development, and am writing a plugin which needs to have an option of uploading a spreadsheet, which the plugin will then work with and process data as appropriate.

This is for front end users, not in the admin area.

What is the best practice? Should I code an upload myself, or integrate another plugin, which my plugin calls and is dependent on? If the latter, any suggestions of a plugin????

Thank you

Share Improve this question asked Nov 8, 2018 at 17:13 StripyTigerStripyTiger 2771 silver badge6 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

I think this could be part of the solution you're looking for: https://codex.wordpress/Plugin_API/Filter_Reference/wp_handle_upload_prefilter

How familiar are you with web-forms in php & file-uploads in general?

Here's a prebuilt plugin solution for frontend uploads: https://wordpress/plugins/frontend-uploader/

& here's a tutorial which looks to be along the lines of what you're describing: https://www.inkthemes/code-to-integrate-wordpress-media-uploader-in-plugintheme/

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749196699a317173.html

最新回复(0)