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 badges1 Answer
Reset to default 1I 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/