Assuming that there is already in the server a script named ‘upload-image.php’ that will receive the image and store it as ‘/uploads/image.png’, the javascript function to perform the upload can be as follows: We just have to add now to the HTML code a button to call the ‘upload’ function, and an
![]()
element to display the image stored in the server after it has been uploaded: Note: As you can see, we are adding a ‘timestamp’ argument to the url of the image being loaded. In this tutorial I want to show you, how we can draw … DWQA Questions › Category: Program › How to draw multiple lines with mouse in canvas? Sketchpad app using html5 canvas to draw using touch or mouse, works on iOS, Android, Window Phone and browser. The HTML