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