I've been messing around with this Flex class and I was wondering if I could do some customization.
As I understand it, Filereference.upload() builds kind of an HTML upload form for it's purposes. So, is it possible to add your on fields to that form?
For example, if the default upload form looks like (this is what I understand from livedocs)
<form action=yourServersidescript method="post" enctype="multipart/form-data">
<input type="file" name="Filename"/>
Is it possible to add some custom input to it? like let's say <input type="hidden" name="customizing" value="custom_input"/>?
I read on the documentation that you can't add custom headers with Filereference.upload, this also applies for the form fields? Many people seems to have complaint about this matter is there any fix available yet?
Thanks in advance.
if you need extra field just to send additional parameters, you can do it with filereference itself.
var ur:URLRequest = new URLRequest(yourServersidescript );
ur.method = "POST";
var param:URLVariables = new URLVariables();
param.customizing = "custom_input";
ur.data = param;
fr.upload(ur,"file"); // _fr is your filereference object.