Highlighted

How do I upload additional data alongside image upload?

Participant ,
Apr 18, 2014

Copy link to clipboard

Copied

How do I upload additional variables alongside an image upload? My code doesn't seem to be working.            temp.upload(new URLRequest(serverURL));           var variables:URLVariables = new URLVariables();                           variables.my_name = "Jackson" ;                 variables.my_state = "Missisippi" ;                            var request:URLRequest = new URLRequest(serverURL);           request.method = URLRequestMethod.POST;                      // Put parameters into request.data           request.data = variables;                                     // Perform the upload           temp.upload(request);

TOPICS
Development

Views

163

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How do I upload additional data alongside image upload?

Participant ,
Apr 18, 2014

Copy link to clipboard

Copied

How do I upload additional variables alongside an image upload? My code doesn't seem to be working.            temp.upload(new URLRequest(serverURL));           var variables:URLVariables = new URLVariables();                           variables.my_name = "Jackson" ;                 variables.my_state = "Missisippi" ;                            var request:URLRequest = new URLRequest(serverURL);           request.method = URLRequestMethod.POST;                      // Put parameters into request.data           request.data = variables;                                     // Perform the upload           temp.upload(request);

TOPICS
Development

Views

164

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 18, 2014 0

Have something to add?

Join the conversation