Lars282 Posted December 16, 2012 Share Posted December 16, 2012 Hey, How do I delete an image? I just gave $user->user_photo->remove() a go, and accidentally deleted the entire user ... Basically, I wan to replace the old image with a new one, though $user->user_photo = new simply adds the new one, still keeping the previous ... Thanks Lars Link to comment Share on other sites More sharing options...
Soma Posted December 16, 2012 Share Posted December 16, 2012 Some useful threads: 1 Link to comment Share on other sites More sharing options...
Lars282 Posted December 16, 2012 Author Share Posted December 16, 2012 Thanks Soma, the first thread helped! Somehow didn't find this when searching myself... Link to comment Share on other sites More sharing options...
arjen Posted December 18, 2012 Share Posted December 18, 2012 I usually search using Google, because the forum search function can't really compete using: site:processwire.com/talk insert query here Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now