A very confusing situation here...
Here's the code:
private function fr_selectHandler(e:Event):Void
{
var fr:FileReference = cast e.target;
var name:String = "";
var where:String = "";
this._queve.push(fr);
fr.addEventListener(ProgressEvent.PROGRESS, this.fr_progressHandler);
fr.addEventListener(Event.COMPLETE, this.fr_completeHandler);
if (!this._loading)
{
this._queve.pop();
fr.upload(new URLRequest("/"), name);
ExternalInterface.call("alert", name);
}
}
(I've omitted the part where name is generated, but it's not important)
I'm using HTTPFox to view the connection between the SWF and the server.
The server is Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k
mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0
I have this in my hosts file (Apparently a Windows machine)
127.0.0.1 test-site.tld
And in httpd.conf
<VirtualHost 127.0.0.1>
DocumentRoot C:\xampp\xampp\htdocs\projects\test-site
ServerName test-site.tld
</VirtualHost>
(it also has the default "localhost" host + a bunch more sites defined) And
it used to work when on localhost!
Now, when I'm running the code above I get no error, but nothing is sent to
the server. I can see the alert box popping up, which means that the
function doesn't fail at loading. I've compiled for debugging and I am using
a debug version of Flash Player 10.0.45.
I have searched for security warnings in the flash log file - there were
none (besides, there shouldn't be, since the URL is relative).
I have these settings in mm.cfg:
PolicyFileLog=1 # Enables policy file logging
PolicyFileLogAppend=1 # Optional; do not clear log at startup
And policyfiles.txt remains blank...
I've searched Apache logs for maybe an unsuccessful request for
crossdomain.xml, but no, flash player didn't make such requests?
My SWF is loaded like so:
http://test-site.tld/uploader.swf
However the URL of the page is
http://test-site.tld/admin
(I'm using mod_rewrite + have following settings in .htaccess)
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule ^(.*)$ /index.php?q=$1 [QSA,L]
Any ideas of what may be going wrong? I've tried all I could think of...
Thanks.