Hi All,
Any help anyone can provide here is appreciated.
I'm writing a custom plugin for a client who needs to upload a CSV file, which the plugin will process and insert into a custom table.
I'm cannot upload the CSV file through wp_handle_upload because it is getting caught up on the unfiltered_upload capability check in file.php, throwing the error: File type does not meet security guidelines. Try another.
I'm uploading as an administrator. I have my plugin's access level set to 10. The function current_user_can shows that I, as an administrator, can edit_files, import, edit_dashboard, and all the other admin-only capabilities, but it does not recognize unfiltered_upload.
Any thoughts? Can plugins access unfiltered_upload?
Thanks,
Jesse