How to upload a BitmapData Object straight to my server?

前端 未结 6 488
北海茫月
北海茫月 2020-12-18 08:14

I wish to upload from my Flash Application (AS3) to imageshacks XML API. I wish to know how I can do this.

\"In Flash, we must POST the data using the UrlRequest and

6条回答
  •  情书的邮戳
    2020-12-18 08:54

    Just my 2 cents to all those who're here to find a php implementation of upload.php. If you have tried HTTP_RAW_POST_DATA and it hasn't worked, try file_get_contents("php://input");

    it has worked for me

    $data = file_get_contents("php://input");
    file_put_contents("filename",$data);
    

提交回复
热议问题