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")