lvertel Posted March 19, 2009 Share Posted March 19, 2009 hello people, i have a form with which i upload pictures to server folder. it is a profile picture of each user. Can someone help me how to allow users to UPLOAD (change) their profile picture???!! p.s. i know one solution would be to delete the old picture and upload a new one in the server folder, but i wonder if there is a REPLACE file function ??!! thank you very much ??? ??? Quote Link to comment https://forums.phpfreaks.com/topic/150180-replace-file-on-server/ Share on other sites More sharing options...
MadTechie Posted March 19, 2009 Share Posted March 19, 2009 if your using the same name then it will replace! as stated in the manual! If the destination file already exists' date=' it will be overwritten. [/quote'] Quote Link to comment https://forums.phpfreaks.com/topic/150180-replace-file-on-server/#findComment-788720 Share on other sites More sharing options...
lvertel Posted March 19, 2009 Author Share Posted March 19, 2009 yes but the new uploaded picture is having a different name then the old uploaded picture (unix time is the name of the uploaded pictures) Quote Link to comment https://forums.phpfreaks.com/topic/150180-replace-file-on-server/#findComment-788722 Share on other sites More sharing options...
MadTechie Posted March 19, 2009 Share Posted March 19, 2009 well if its a different filename your swapping as your need to update its link.. thats not truly replacing it.. So yeah just delete the old one! Quote Link to comment https://forums.phpfreaks.com/topic/150180-replace-file-on-server/#findComment-788727 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.