I used this code for a long time. It works perfectly. Now, I make php 5.4. It saves the picture but it doesn't go to the site daten.php. When I click at save only save the picture nothing else.
var header:URLRequestHeader = new URLRequestHeader ("Content-type", "application/octet-stream");
//Create the thumbnail file name
var dotLoc:Number = currentImageName.lastIndexOf(".");
var prefix = currentImageName.substr(0, dotLoc);
var ext = currentImageName.substr(dotLoc);
var thumbName = prefix + "_thumb" + ext;
// Send the data out to PHP to be saved
var jpgURLRequest:URLRequest = new URLRequest ("http://www.domain/datei.php?name=" + thumbName);
jpgURLRequest.data = jpgData;
jpgURLRequest.requestHeaders.push(header);
jpgURLRequest.method = URLRequestMethod.POST;
var jpgURLLoader:URLLoader = new URLLoader();
jpgURLLoader.addEventListener(Event.COMPLETE, saveComplete);
jpgURLLoader.load(jpgURLRequest);
navigateToURL(jpgURLRequest,"_blank")
If i understood you correctly the data is saved on the server but the navigateToURL() is not working ? I've heard of some problems in Chrome browser related to that and also some popup blockers might block navigateToURL().
Nowadays it is better to use JavaScript via ExternalInterface to open up new pages (naturally, it will only work in a browser, not in the standalone flash player andyour users have to have Javascript enabled in the browser which is the default):