0

Hi, recently I have been working on a file upload script that users can upload an image. I got it to work but I am stuck on how to let user update or change the image they upload.
I would like this to work kind of like facebook photos work. Any feedback would be helpful.
Thanks.

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by vibhaJ
0

For changing image follow below steps:
- one php page where user see his/her old uploaded image with browse button.
- when user upload image with browse andf click on update button, on server side in php code check if image is valid.
- if all is set then firstly unlink (delete) old image and upload new image in folder location and use 'update' sql query to update image name in database.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.