Forum OpenACS Q&A: Response to has anyone got file upload working under win2k?

Collapse
Posted by russ m on
To answer my own question - form submission with an encoding of multipart/form-data is only broken on Win2K if you're getting the form data using [ns_getform] and/or [ns_queryget] (which is what [ad_page_contract] does). [ns_get_multipart_formdata] works fine since all the file handling is done in C instead of TCL. So, as long as you're only uploading one file per form, and you're willing to do without [ad_page_contract] on file upload pages, it seems to work OK.

<rant>
This is a really annoying excersise. The customer in question runs their main applications on HP/UX, and does all their databasing on Oracle. Politically it's difficult to impossible to get space on one of the HP/UX boxes or use the Oracle DB untill the application is proven usefull, so our contact wants to just chuck another 2K box on the network and avoid dealing with corporate IT. So we get this bogus crippled platform to work with, and if we can make it look good enough under those circumstances then we can shift to a real platform later. Such is the joy of dealing with "Enterprise IT". Gak.
</rant>