D
D
Denis Goncharenko2015-11-05 11:54:58
Images
Denis Goncharenko, 2015-11-05 11:54:58

How to upload an image correctly?

Let's say the user needs to upload an avatar in the form, but must first crop it. It turns out that you first need to upload the original image to the server, then get it, crop it, save the new one, and delete the old one? Or can it be done somehow without saving the original on the server, storing it somewhere in the browser cache or somewhere else?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Ineshin, 2015-11-05
@IonDen

On the client, it’s normal not to do everything, the server should cut everything off. The client only specifies the coordinates.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question