I hit my head several times on the wall before I found out why browsers on MAC dont work exactly as browsers on windows, after uploading a file via Flash.
the reason is simple : on MAC the browsers never calls onComplete = function(fileRef:FileReference) {}. Which means that the image is uploaded alright, but the flash app never gets a response back that the file has finished uploading.
All you have to do is , on your php/aspx/apsx/py or whatever server side file is handling your file upload from flash, you need to print something at the end of uploading.
for example in php, you could print the word : completed.
print "completed";
you can print whatever word you want, it doesnt matter, all that matters is that the server side file is printing something (After the upload has finished) and browsers on mac platforms, will pick up on that , and your file upload will work!
Related posts:
- Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs It was nice enough in AS2 when you did a...
- JQuery wildcard selectors JQuery wildcard selectors on select boxes, how to reset all...
- [AJAX Magazine] DHTMLX Released Version 2.1 DHTMLX announced the update of their Ajax UI Toolkit, a...
- Qooxdoo 0.8.2 Featuring A Cross-Browser “Inspector” Tool Qooxdoo 0.8.2 has just been released with some cool new...
- Who needs Flash? Having fun with Canvas and SVG Over in SproutCore land, they have been talking about Peter...







Tue, Apr 27, 2010
Programming, Snippets