Skip to main content

Posts

Showing posts with the label file upload on client side

File upload reference on client side for client side processing like crop image or anything

I have had a requirement were i needed to include the crop functionality in already developed file upload control, requirement was user should be able to crop the images he selects and later on when he finalize the selection, and that file should get saved on server so next it is available to user Here our tradition approach is always like, we upload the file on server on some temporary location, so that it is available for cropping to user, and he can apply cropping on client side and send that to server with its crop selection and on server side we can process that image and crop on server side with already uploaded image and save so only cropped version will be saved and use that image There is another approach which can save us from doing the upload first, crop and later on again save that image, the process is like following, Find the following code Consider following is my upload control Now,Consider following javascript registered which will take the file reference...