Thinkphp3.2.2 combined with seven bull problem 100 points stick big fast!

Source: Internet
Author: User
Currently I am using the thinkphp3.2.2 version of the framework to build our project, TP combined with seven of cattle, there are seven of the driving class library, ordinary upload can be achieved. Now encountered a problem, is that I in the front-end with localresizeimg plug-in compression of the picture, to get a compressed image of the Base64 code and then Ajax to the background, is now in the environment of TP how this base64 code of the image of seven cattle?


Reply to discussion (solution)

TP is not a combination of seven kn, should be the interface by requesting seven kn,
Pass the picture to the server of seven cows,
The TP should be handled by the post operation of Curl.

I'm now the front-end Ajax compresses the image, not a file, but a Base64-code object

Decode and restore files in your server, then upload them again.

Your server side is definitely post pictures to the thousands of cattle server, before the post will get the foreground to the base64 format of the image to decode, get the normal picture.

Thank you for your help! Seven cows to provide Base64 upload has been resolved

  • 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.