Hello,
i'm trying to set up the SWFUpload. It looks nice, i can select files, but if i want to start the upload the event handler upload_start_handler is the last thing that was called..
I'm working on Ubuntu Linux with Firefox and Flash 10. Could this be the problem?
April 30, 2009 - 10:49am
Make sure you are using the latest version of SWFUpload (2.2.01 currently).
Make sure your upload_start_handler function is not returning false.
April 30, 2009 - 10:58am
There was another problem. All static files like stylesheets, images and flash files are hosted on another subdomain (static.domain.tld) while the php scripts are running on www.domain.tld.
If i put the swf file into www.domain.tld the upload works. if it is on static.domain.tld nothing happens after the upload_start_handler event. The swf returns that way "undefined".
April 30, 2009 - 11:57am
This is a security feature of the Flash Player. Although you should be getting an uploadError event (but who can predict what the Flash Player will do).
In order to host the SWF file on a different domain than the upload.php you must create a crossdomain.xml file.
This is outside our area of experience. However, Adobe's website has the details: http://www.swfupload.org/forum/generaldiscussion/1452
April 30, 2009 - 12:00pm
Thank you, now it works...