admin管理员组文章数量:1328953
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?
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 edited Apr 13, 2017 at 12:37 CommunityBot 1 asked May 20, 2011 at 18:31 HowlerHowler 1211 silver badge3 bronze badges 3- couldn't you just upload it via ftp? – NW Tech Commented May 20, 2011 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 Commented May 20, 2011 at 19:28
- I have same issue. I want to upload the file (having no format) from front-end but I got the error "Sorry, this file type is not permitted for security reasons.I have tried all solution available on internet, but nothing works. – Qammar Iqbal Commented Jul 17, 2020 at 2:15
2 Answers
Reset to default 2Why 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.
I'm not able to install plugins atm to test, but maybe this plugin would work for the files you FTP - Add From Server
本文标签: How can I upload a file with no extension
版权声明:本文标题:How can I upload a file with no extension 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742256240a2441679.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论