Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   software pad file xml being rejected as "unsafe" (http://forum.bytesforall.com/showthread.php?t=5596)

LocalGoogleGuru Jan 30, 2010 01:05 AM

software pad file xml being rejected as "unsafe"
 
I hope you guys n gals can help me with this:

I'm wanting to upload software to /wp-content/

Problem is I need to add a pad file to go with the software

am getting this error msg:

"File type does not meet security guidelines. Try another."

is there anything I can do to get the CMS to accept the xml file?

thanks

LocalGoogleGuru Jan 30, 2010 01:54 AM

Am learning that I need to instruct wordpress to allow more file types

is this best done in bfa_theme_options.php perhaps??

I don't see any options for file types in =>settings=>miscellaneous

??

thanks

pakacil Jan 30, 2010 04:14 AM

i think it's nothing to do with atahualpa. WP has file type filter to upload and consider it as "safe"

---
but, hope this one can help you...

open and edit functions.php (file located in wp-includes directory)
find this code, start in line 2278
PHP Code:

if ( !$mimes ) {
    
// Accepted MIME types are set here as PCRE unless provided.
    
$mimes apply_filters'upload_mimes', array( 

add file type that you want below that line, maybe like this...
PHP Code:

'xml' => 'text/xml'


note:
• functions.php file that i tried to edit is in WordPress 2.9.1
• another way is upload your file using FTP Client :)


All times are GMT -6. The time now is 07:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.