Frontend image uploading from edit profile page. (goldenapples)
the problem is in this line : $attach_id = media_handle_upload( $file_handler, $user_id ); when you use media_handle_upload and provide a second parameter (which in your case you do) the the attachment is associated with a post that has that ID, so basically WordPress thinks your are telling it to save this as an attachment to … Read more