Question

How do you use wp_handle_upload function and apply_filters together to upload files on a specific path? What is going to be the override?

For example:

$overrides = array('file' => 'C:\\uploads\\filename.pdf','message' => 'File written');
apply_filter('wp_handle_upload',$overrides);

or something like that? Or is this the right code?

The real question in here is: what $overrides can be used as the key to this associative array?

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top