Looks good to me.
In both cases are you adding the file to the same folder? Could it actually be a folder rights issue?
Can you attach a screen shot of the actual error you are getting?
Jeff, First it's an honor. Your blog has been very helpful on several ePDM issues. And even though it wasn't a folder rights issue you made me look more thoroughly at the setup. It was a State permissions issue. When I had been testing the CAD files I was logged in as Admin. When I went back to add the non-CAD files I logged into the database as Engineer and hadn't yet given rights to the initial state.