Use PHP , my concept is: User upload image by submit form, then script overlay logo watermark. I want to save the modified image to the same location of original image (on user's computer). My code now is something like this:
<form name="form1" method="post" action="watermark.php" enctype="multipart/form-data">
Select file:
<input type="file" name="uploadfile"/>
<input type="submit" value="submit">
</form>
How to know the path of original file to save the modified image in the same location?