ddhr.org
Old-Style Upload Tuesday, Jun 13, 2006 3:37 pm

I started using another one of Il Filosofo's plugins last week, but it only affects the WordPress admin area.  It's his Old-Style Upload plugin.  It adds the upload functionality that older versions of WordPress had.  There are configurable options, including where to upload the files and what types to accept.  The cool thing is that these options have no effect on the upload capabilities that already exist within post-writing.  The reason this is cool is because I can use the in-line upload tool to upload pictures or other files to my posts, and I can use the Old-Style Upload plugin to upload plugins to the /wp-content/plugins/ directory.  And that's exactly what I'm doing!  It's great!  I can't believe this functionality isn't already there.  I used to have to use FTP to upload new files.  What a waste of time and security! 

One change I would make to the plugin is to comment out line 146, which says $img1_name = preg_replace('/[^a-z0-9_.]/i', '', $img1_name);.  This line renames the uploaded file by taking out certain characters and symbols.  I think this is stupid, and commenting it out solves the problem. 

About (more)
Hi, my name is Dave Hosier, and this website is where I write my unfounded opinions on trivial matters. Feel free to look around, but please refrain from reading anything.

contact | code | pictures | feed

Discussion (feed)
Rus on Pop culture illiteracy: Dave, You and I live in...
Steven on Blackberry vs. black raspberry: Man alive there is a...
Dave on Funeral clothes: So does this count as...
Rus on Funeral clothes: Assuming you attend mine...and I...
Dave on Olympics observations: I had no idea ski...
Rus on Olympics observations: Interesting about point #2 above. ...
villa on WinXP .mov thumbnails: tnk, works super ok for...
X on WinXP .mov thumbnails: almost two years later, still...
Rain on Men in boots: ha ha I agree! I...
sb on WinXP .mov thumbnails: cheers works a treat!