my listener.onComplete = function(selectedFile:FileReference) is fired without any file in the upload dir. if the file is small and I wait a bit I can see the file (through FTP) coming up on the server, but most of the times the "onComplete" if fired without any file being saved.
can I add something to this php code to make sure the file is uploaded? thank you
$folderloc = $_GET['l'];;
if(!is_dir("./$folderloc")) mkdir("./$folderloc", 0755);
if(move_uploaded_file($_FILES['Filedata']['tmp_name'], "./$folderloc/".$_FILES['Filedata']['name'])){
chmod("./$folderlocs/".$_FILES['Filedata']['name'], 0777);
}