EDIT: Reworked my code a bit and decided to throw out URLLoader in favor of the File.upload() method.
Now I’m stuck again >_<
Here’s the code I currently have, stripped down to bare-bones: https://gist.github.com/1943401
When I drag-drop image files onto my app, here is the trace log that gets returned to me:
[object Document] called.
doDragEnter() called.
doDragDrop() called.
file Extension Check = passed
Uploading files: C:\testimage.jpg
addImage() called.
currently uploading: [object File]
Making progress with [object File]..
Making progress with [object File]..
Making progress with [object File]..
Making progress with [object File]..
Making progress with [object File]..
HTTP Response: [HTTPStatusEvent type="httpResponseStatus" bubbles=false cancelable=false eventPhase=2 status=400 responseURL="http://api.imgur.com/2/upload.xml?key=********REMOVED**********&name=name&title=title"]
onCookieSent() called.
resultsListXML =
Temp value=
xmlString Value=
Upload Complete: [DataEvent type="uploadCompleteData" bubbles=false cancelable=false eventPhase=2 data="<?xml version="1.0" encoding="utf-8"?>
<error><message>No image data was sent to the upload api</message><request>/2/upload.xml</request><method>post</method><format>xml</format><parameters>Filename = testimage.jpg, Upload = Submit Query, key = *********REMOVED********</parameters></error>
"]
I did something similar to Todds alternative. Basically I had to upload each image asynchronously (one at a time).
So I created an array of images and created an integer (i) counter starting at 0.
Each time I uploaded an image the COMPLETE event was called.
within the complete event function the counter was incremented. If the counter was less than the length of the imagesArray I would then
e.g.