win2k3 iis basic auth ssl php5 and needs to work in safari

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kodersoftware
Forum Newbie
Posts: 4
Joined: Tue Aug 09, 2005 9:18 am

win2k3 iis basic auth ssl php5 and needs to work in safari

Post by kodersoftware »

wow. i've been banging my head on the wall for a few days and narrowed down an upload problem i was having in safari to enctype="multipart/form-data". i know. it doesn't make any sense. and i could be wrong, but let me give you the scenario.

mac users needs to upload pdfs to the site. i build xhtml 1.0 transtitional valid form which shows everything that's been uploaded thus far (and fields to edit what the web users will see) and a few blanks for adding new uploads. so theres maybe 100 fields and 25 are file upload fields.

the intranet server is win2k3 with iis. uploads work (getting uploading to a UNC path was challenging, but that's another post) on PC's in any browser. the site requires you to log in. i'd use integrated authentication but IIS doesn't properly use this info to make sure the logged in user has permissions to save on remote file servers (back to the UNC thing), so we're using Basic Authentication and ssl.

well. everything is fine in non-ssl mode, but with ssl on, safari would hang forever and then evetually tell me i'm not connected to the internet (interesting and silly error message).

so, long story short, i'm going back and forth, switching this switch on, that property off, etc, and finally i hit on one that seems to take care of it: i removed
enctype="multipart/form-data" from the form code. so now it looks like:

Code: Select all

<form action="<?php $PHP_SELF; ?>" method="post">
i've uploaded a single file, multiple files, multi files and data. everything works fine now.

now i know this situation is something that 0.001% of you are going to run into, but this will save that one person a few days of hairpulling hopefully.

thanks for listening,
jim
Post Reply