Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Фильтр</title>
- </head>
- <body>
- <script src="script.js"></script>
- <script>
- var dataURL = canvas.toDataURL();
- $.ajax({
- type: "POST",
- url: "upload.php",
- data: {
- imgBase64: dataURL
- }
- }).done(function(o) {
- console.log('saved');
- // If you want the file to be visible in the browser
- // - please modify the callback in javascript. All you
- // need is to return the url to the file, you just saved
- // and than put the image in your browser.
- });
- </script>
- </body>
- </html>
- <!-- ff00d8 -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement