Advertisement
sanych_dv

Untitled

Mar 9th, 2015
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     var url:String = "http://cs610225.vk.com/upload.php?act=add_doc&mid=67296096&aid=0&gid=0&hash=9f947d7de2445d4595d9ff9e63b8b583&rhash=3cd41dc47965d7509196b89f99794380&api=1";
  2.        
  3. var ba:ByteArray = new ByteArray;
  4.         ba.writeUTFBytes("Test блять на хуй");
  5.  
  6.        
  7.         var fileContentType:String = 'text/plain';
  8.             var mpLoader: MultipartURLLoader = new MultipartURLLoader();
  9.             mpLoader.addEventListener(Event.COMPLETE, completeUpload);
  10.             mpLoader.addFile(ba, "mytext.txt", "file", fileContentType);
  11.             mpLoader.load(url);
  12.  
  13. /***************************/
  14.  
  15. {"file":"67296096|0|0|610225|53c845bd2c|txt|29|mytext.txt|daa21dc5ef5021f0bad4256790fc62c5|21f8172c28eaf10cf79dc3a97f1855aa|"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement