Is there a way to upload images without URLs on the client page to the server?

Source: Internet
Author: User
Is there a way to upload images without URLs on the client page to the server? I want to create an image cropping program.
All I can see on the internet is to upload the source image to the server.
Use the built-in php functions for cropping.
I want to ask if there is any way
No need to upload source images
Directly upload the cropped image previewed on the webpage to the server?
However, the preview image has no path.
Is there a way to upload?
Or are there other ways to achieve the effect of not uploading the source image?
Thank you !!


Reply to discussion (solution)

Although Canvas. toDataURL can be used to send the cropped area
However, Canvas can only accept same-source images.
Therefore, you cannot upload files.

Follow the general method to save trouble.

I decided to use canvas

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.