mutation of $_FILES for wp_handle_upload
-
Greetings,
I hope this is the right place to post this. If not, please let me know where this would be more appropriate.
I am working with wordPress. I have a template with a form that invokes <input type=”file” > and then submits to a PHP script to make sure the users uploaded a valid file.
I’d like to use a file on the server instead, so I have been trying to mutate the $_FILES array information to point to a file on the server instead of one that the user uploads.
I’m not sure if I should be mutating this array inside the form before the user clicks the [done] button or if I should do this in the PHP script that handles the form. I wish HTML had a type=”local-file” though. Any help would be appreciated and I would even pay for a successful resolution as this is for a respectable employer’s web page.
Regard,
TimThe blog I need help with is: (visible only to logged in users)
-
You’re in the wrong place. This is the forum for blogs hosted at WordPress.com. Please ask for help here:
- The topic ‘mutation of $_FILES for wp_handle_upload’ is closed to new replies.