Safari and PHP, File Uploads Solved!
I posted recently about image file uploads to PHP, and how they would fail in Safari. It was a nasty bug that wouldn’t go away, but I finally discovered the problem. On my upload form, I was using javascript and CSS to hide the form fields and replace them with an “Uploading files…” prompt. It seems that there’s a bug in Safari where hidden forms will contain no values. So, in hiding my form, nothing was being sent to my site!
I was wondering why my $_FILES array was empty - it just didn’t make any sense. After I stopped hiding my form, I instead covered over it with the ”Uploading…” dialogue using relative positioning. Now the $_FILES array was being populated and the files sent via POST. It works like a charm now!


