dchelimsky (owner)

Revisions

gist: 110266 Download_button fork
public
Public Clone URL: git://gist.github.com/110266.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import flash.utils.ByteArray;
import ru.inspirit.net.MultipartURLLoader;
 
var byteArray:ByteArray = new ByteArray();
byteArray.position = 0;
 
var ml:MultipartURLLoader = new MultipartURLLoader();
ml.addEventListener(Event.COMPLETE, onReady);
 
function onReady(e:Event):void
{
// Upload Complete
}
 
ml.addFile(byteArray, 'foo.bmp', 'photo[photo]');
 
ml.load('http://myposturl.com/some/path');