Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am trying to upload a configuration file so I can include a link to it in my post. And I get a Security error, because the file type is not allowed.

My config file has no extension.

I found this question: Adding file types in wordpress

Is there a way that I can add the mime type of '' for a "No Extension" type?

share|improve this question
    
couldn't you just upload it via ftp? –  NW Tech May 20 '11 at 19:00
    
@Chip Well, I can certainly get the file in the uploads directory (I can simply mv or FTP it there). But I can't figure out how to get it to show in "Media" once it's there, so I can link to it from WP. –  Howler May 20 '11 at 19:28

2 Answers 2

Why not just add .txt to the file? It's probably the safest thing to do. If you need the file name to display without the extension, you can always filter the string.

share|improve this answer
    
Yeah, this had occurred to me as well, and I suppose is a valid solution. It just adds another step for anyone who would want to download my config "as-is", because they would have to rename it to remove the ".txt" –  Howler May 23 '11 at 16:12

I'm not able to install plugins atm to test, but maybe this plugin would work for the files you FTP - Add From Server

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.