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

Upload crop result #4

Open
nbaxley opened this issue Nov 6, 2014 · 3 comments
Open

Upload crop result #4

nbaxley opened this issue Nov 6, 2014 · 3 comments

Comments

@nbaxley
Copy link

nbaxley commented Nov 6, 2014

This is a great tool. Very simple and easy to use.

Is it possible to upload the resulting cropped image? I have a script that can accept the file, but need a way to inject it into a form field to be uploaded.

@hongkhanh
Copy link
Owner

Hi,

Just call getDataURL (a base64 type acts as src of image) or getBlob (support blob) function depend on how you handle file from server. you can refer http://www.nickdesteffen.com/blog/file-uploading-over-ajax-using-html5

Cheers,

@Ahmadrameen
Copy link

It was so simple and easy. The problem that i face is how to upload the cropped image to the user folder based on their ids from MySQL database, for example john has id 5 and i need when he uploaded an image so then the image should be stored in an already created folder by the name of its id.

Also how to save the latest uploaded image URL of him in the MySQL database in avatar_image column.

@chalchis
Copy link

Is there any example of how to save the image on the server with php?

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

No branches or pull requests

4 participants