Ever tear your hair out for hours trying to track down why something is not working, only to find out that it is the simplest thing? Well, after losing a large chunk of my life that is never to return, I am happy to say that it is solved.
While doing some module development on my Mac using xampp, I was running into the problem that file uploads to nodes, either via upload.module or CCK filefield was not working at all. Not in D5, not in D6. Nothing I could do or think of would solve it. Nothing on Google or any other search engine despite my myriad of search terms.
After literally hours trying all I could think of, debugging PHP, JavaScript, etc, I finally found out that Irakli was having the same problem and swooped in to the rescue. Turns out that it was a configuration parameter that was left to “default” in php.ini. By default
; Temporary directory for HTTP uploaded files (will use system default if not specified).
;upload_tmp_dir = Was not actually using a valid system default as best we can tell. Simply changing it to
; Temporary directory for HTTP uploaded files (will use system default if not specified).
upload_tmp_dir = /tmpfixed all if our upload woes and we were back in business.
Now, can I have that last half a day of my life back?

Delicious
Digg
StumbleUpon
Reddit
Technorati
Recent comments
7 hours 3 min ago
21 hours 32 min ago
22 hours 47 min ago
1 day 3 hours ago
1 day 7 hours ago
3 days 4 hours ago
1 week 20 hours ago
1 week 1 day ago
1 week 5 days ago
2 weeks 4 hours ago