Role Capability unfiltered_upload not recognized for Admins in Plugin [WP 2.9]
-
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 theunfiltered_upload
capability check infile.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, canedit_files
,import
,edit_dashboard
, and all the other admin-only capabilities, but it does not recognizeunfiltered_upload
.Any thoughts? Can plugins access
unfiltered_upload
?Thanks,
Jesse
- The topic ‘Role Capability unfiltered_upload not recognized for Admins in Plugin [WP 2.9]’ is closed to new replies.