[wp-hackers] Front end file handling
kevinjohngallagher at hotmail.com
Wed Nov 14 11:17:48 UTC 2012
I'd have a look at some of the bbPress stuff.There was some front-end signature/avatar plugins that did something similar (can't find the link I was looking for - sorry)
> Date: Wed, 14 Nov 2012 10:33:13 +0000
> From: tcbarrett at gmail.com
> To: wp-hackers at lists.automattic.com
> Subject: [wp-hackers] Front end file handling
> The aim is to let users upload a picture, but without using /wp-admin/.
> They update a post they own.
> I already have the file in a subdirectory of uploads. The URL to the file
> is stored as a piece of post meta.I want to add the image to the media
> library, and attach it to the post being edited.
> The media sideload functions live in /wp-admin/includes/media.php and are
> not loaded on the front end. They in turn need files.php - however, just
> including those two files in a hook breaks things (silently on my set up).
> So, before I start rummaging around more, I thought I'd ask! How to best
> sideload from the front end in the above scenario?
> http://www.tcbarrett.com | http://gplus.to/tcbarrett |
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers