kidintraffic Posted May 5, 2007 Share Posted May 5, 2007 When a user uploads an image from a form, the image is loaded to a directory on my server. If the user uploads an image with the same filename as one that already exists in the uploaded folder, they receive this error: Warning: copy(image path/image name.jpg) [function.copy]: failed to open stream: Permission denied in /var/www/uploadpage.php on line 22 Is there a way to hide this error or to allow the user to overwrite the existing image? Quote Link to comment https://forums.phpfreaks.com/topic/50168-overwrite-image-that-was-already-uploaded/ Share on other sites More sharing options...
kidintraffic Posted May 8, 2007 Author Share Posted May 8, 2007 is there something I can code to allow the file to be overwritten in the upload folder? Quote Link to comment https://forums.phpfreaks.com/topic/50168-overwrite-image-that-was-already-uploaded/#findComment-248596 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.