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. 

Hello
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.

about | contact | feed

Comments (feed)
Dave on Cubeicals wine rack: I ended up cutting a...
Harry on Cubeicals wine rack: So Dave, how did you...
Emily on Constant vs. average speed: I can give you sun...
Dave on Accents that annoy me: I'm pretty much saying I...
Wendy on Accents that annoy me: Are you passively aggressively saying...
JSW on Accents that annoy me: KInda like I can't tell...
Dave on Accents that annoy me: Understood, but my untrained ears...
Dave on Constant vs. average speed: I don't think so.  There...
JSW on Accents that annoy me: I realize with you being...
Emily on Constant vs. average speed: You don't think the beaches...