Just testing out the file upload feature in WordPress.
Thought I’d share one of my favorite Olivia pieces:
Hey – what do ya know? It worked!
I couldn’t get it working before now. It didn’t matter that I had chmod the directory to 644. WordPress would always upload the image with the chmod set to 600 – no matter what I did. The fix is relatively easy :
Add a ‘chmod($pathtofile2, 0644);’ line before the first ‘@unlink($img1);’ line in wp-admin/upload.php and a ‘chmod($pathtofile, 0644);’ line before the second ‘@unlink($img1);’ line. That’s it!
Found it in the WordPress support forums. Implemented it – – and that’s all she wrote!