Howdy guys and girls.

I am using import flash.net.FileReference;
import flash.net.FileReferenceList;
to create
an upload site. Currently things seems to work when uploading.

The only problem is when I am uploading a file that doesnt contain any
data. For example it can be a empty note pad without anycontent.

Getting HTTP error when trying to upload. Trying to make user friendly uploading and wondering if anyone has around code/tips or somekind of validation.

Tried to create but I am failing when I add files that has data.

PHP Code:
var list:Array = fileRefList.fileList;
var 
fileRef:FileReference;

if(
fileRef.size == 0){
status_txt.text "No data";
 } 
I tried to with splice to remove the value that has 0 in it, but dont delete duplicated.