Testing File Upload Feature

Just testing out the file upload feature in WordPress.

Thought I’d share one of my favorite Olivia pieces:

Olivia - Sugarpuss

–==Update==–

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!

Owner and Creative Designer for E.Webscapes Design Studios and Lead Developer/WP Architect at Convertiv. She is also the author of WordPress For Dummies. On the web » Blog | Twitter | Facebook

7 Responses to Testing File Upload Feature

  1. I knew that if you had to deal with it it would be fixed in no time :-)

    I’m gonna do this fix later. Thanks!

  2. I knew you’d be happy about this one :)

  3. I had considered using wordpress when I decided I was tired of my own hand coded updaterthingamajig.. but with my severe dyslexia I had to find something that would baby talk me through the install. Turns out I couldn’t even do MT the first time. My gf had to do it for me. Bless her heart. Now I think I’m pretty good at installing it. Maybe I’ll try installing WP just to see if I can.. ha!

  4. Rachel – WP is so easy to install it’s funny :) It takes all of about 5 minutes to do, once you have the MYSQL database set up.

    Good luck, if you do it :)

  5. Who cares about WP? Look at that Olivia piece!!!

  6. Um, Linda, just what kinda “piece” are we talking about here?.. heh.

  7. Hey – you guys are supposed to “Oooo” and “aaaah” over the scripty stuff! ;)

Click on a tab to select how you'd like to leave your comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>