Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving image on server #234

Closed
lowe493 opened this issue Mar 26, 2017 · 5 comments
Closed

Saving image on server #234

lowe493 opened this issue Mar 26, 2017 · 5 comments
Labels

Comments

@lowe493
Copy link

lowe493 commented Mar 26, 2017

Hello, do you know the best way to do this? i noticed somebody else asked the question but i cannot tell the best way to include their solution, can you help?

I have resized the canvas and ideally would like a button that saves the image back to my server hosting the site with either a random name or a name from a field somewhere on the page

Thanks
Steve

@szimek
Copy link
Owner

szimek commented Mar 26, 2017

@lowe493 Please ask this question on https://stackoverflow.com. You'll most likely get more answers there.

Anyway, it's really up to you how you want to do it and depends on what language you're using on the server. You could save them directly on the disk, send them to S3 etc., there are many options.

The easiest way is to either send content of the image to the server using XHR (Ajax) or simply create a form with a hidden field and set the value of this hidden field to the data you get from the library.

@abhiyan52
Copy link

abhiyan52 commented Mar 30, 2017

Hello,I am implementing this signature pad for my college project .I tried at my best to send it to the server but due to the large URL size ,I am unable to do so.I am using PHP to send the image to the server but the url exceeds the limit of the URL length.
Is there anyway to decrease the url size ?

@ryanrupp
Copy link

You should be sending the data via a POST with the payload in the body of the request rather than sounds like you're putting it in a URL parameter on a GET.

@abhiyan52
Copy link

Thank you

@szimek szimek closed this as completed Apr 8, 2017
@szimek szimek added the question label Apr 8, 2017
@h4de5
Copy link

h4de5 commented Oct 21, 2019

I made something hopefully useful for users:

https://jsfiddle.net/d7ejkz1v/1/

I just added an upload javascript function to the signature pad example. It should upload the signature via ajax to the target url. on the server side you can handle those signatures as normal file uploads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants