My take on this is that, yes, it is there, and it would be great if it did work for me (and others) but as it does not, I’d like to find out exactly *why* it does not, and then see if it can be fixed.
If there is a fix, then document it and pass that information out for others and maybe for development.
I don’t pretend to know loads about php or servers and what language they use, but if by repeatedly trying different things, and slowly ruling things out, then that would – I hope – narrow the probable causes. Right now I don’t know if it’s the build (though I will try nightlies) or my server environment. WP is still fairly young when compared to some other blogging tools, so I just see this as part of the process …
Ok,
I fixed the upload script.
Someone added an extra / in two places in the code so paths specified in the file were
/homes/username/website/uploaddir//
hence why nothing was uploading properly.
NOTE!!!
To get this to work you MUST have a trailing slash on upload paths. In the options menu!
Mine as an example:
/home/orbitj/public_html/files/
http://www.orbitjuice.com/files/
Here is a link to the updated upload.php file
http://www.orbitjuice.com/hacks/upload.php
I’ve tested it out three times and it works.
This sounds great … but I get an error when I click your php link ?
(Btw, I thought that’s what I saw when watching Superbowl last night ! π )
Anonymous
Excellent !!!!!
Many thanks OrbitJuice !
I uploaded an image this morning (it’s my Anon post above).
Came back earlier after doing other stuff on the site (just CSS), and tried – didn’t work.
Copied your txt file, uploaded it again, tried again – no joy.
Checked the trailing slash was there – it was .
I took the trailing slash *off*, and went to upload an image called ‘tattoo.jpg’ to dir ‘pix’ which is inside my ‘testblog’ dir.
Successful upload, checked, and I’d got nothing in the pix dir, but I *had* got a file called ‘pixtattoo.jpg’ inside the testblog dir. (I hope this is making sense)
So I added the slash again, but the jpg doesn’t get uploaded when I try again. (I tried with different images too)
I tried moving the pix directory (chmod still 766) out to mainhtml, but again it doesn’t work.
I’m leaving it until tomorrow now – trying to understand certain parts of xhtml has driven me mad today – and I’ll do a completely new install and try that (just in case I’ve broken something somewhere – not that I think I have though).
I’m not a coder or a tweaker… but, I sifted through it and got it to work for me.
What I can suggest is the follow…
Grab a hold of a 3rd party PHP Uploading script (I suggest MaianUploader)
In the wp-admin folder, edit admin-header.php, and change this line:
function launchupload() {
window.open (“upload.php”, “wpupload”, “width=380,height=360,location=0,menubar=0,resizable=1,scrollbars=yes,status=1,toolbar=0”);
}
To point to the 3rd party tool.
Yeah, Maian uploader is pretty hefty.
but, it’s extremely stable and reliable.