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

New contributor
pbs is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
up vote 0 down vote accepted

I think this could be part of the solution you're looking for: https://codex.wordpress.org/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.org/plugins/frontend-uploader/

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

Your Answer

pbs is a new contributor. Be nice, and check out our Code of Conduct.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.