PDA

View Full Version : LoadVar contentType


DanWSampson
11-18-2003, 05:18 PM
I have a upload program that submits the file I need to upload to the server. I have the script working in HTML but would like to get it working in Flash. The trick to get it working in HTML is having 'enctype="multipart/form-data" ' at the end of the form.

In Flash I am using LoadVars(); Is there anyway to determine my contentType to be equivalent with multipart/form-data?

Also, is there list someplace on the web of ALL available contentType's?

thanks.

Dan Sampson

Stimpson
11-19-2003, 05:22 AM
Hey and welcome here.

Use contentType on the LoadVars object to determin that.

var loadvar=new LoadVars();
trace(contentType+" = "+loadvar.contentType);

DanWSampson
11-19-2003, 11:31 AM
My current contentType is "application/x-www-form-urlencoded". Is there a contentType that would allow me to pass data and not just text?

Thanks.