I know most of you using UBB salivate over the meer mention of UNIX, LINIX, and Apache. But some of us out here actually have to use NT servers.
I've had a problem that nobody could figure out using ELY_M's upload hack running on NT/IIS5.
The specific problem I was having was a CGI error after clicking the upload button. Specifically, a permission issue when writing to a temp file.
Well, here's the solution: create a C:TEMP directory if one doesn't exist, and give your IUSR account read/write access. Scary, I know. EDIT: Actually, give IUSER read + write + delete. You can add delete in WIN2000 by clicking on the advanced button. Otherwise, the temp directory will fill up with the same files in the uploads directory. Or, just add "Modify" permission and that will cover all the permissions needed (I prefer just R+W+D).
Problem fixed.
Of course, I don't know how excited your webhost will be to add a C:TEMP directory and then give read/write access to IUSR on it. But some of us are the webhosts, and have that flexibility.
Are there any security risks in doing this? Any comments would be appreciated.
And, now that I see how it works, thanks ELY_M and LK for putting together an awesome hack. THANK YOU! THANK YOU! THANK YOU!
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.