Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

software pad file xml being rejected as "unsafe"


  #1  
Old Jan 30, 2010, 01:05 AM
LocalGoogleGuru
 
7 posts · Jul 2009
Frederick, Maryland
Send a message via AIM to LocalGoogleGuru Send a message via MSN to LocalGoogleGuru
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
  #2  
Old Jan 30, 2010, 01:54 AM
LocalGoogleGuru
 
7 posts · Jul 2009
Frederick, Maryland
Send a message via AIM to LocalGoogleGuru Send a message via MSN to LocalGoogleGuru
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
  #3  
Old Jan 30, 2010, 04:14 AM
pakacil
 
20 posts · Jan 2010
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

Last edited by pakacil; Jan 30, 2010 at 04:26 AM. Reason: adding info

Bookmarks

Tags
pad file, wp-content, xml

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to select "Only Exerpts"/"Full Posts" for certain post? shus Center area post/pages 4 Jan 19, 2010 01:41 PM
How to change the font of "1 comment to..." and "Leave a Reply" headers RHCdG Header configuration & styling 1 Nov 28, 2009 04:56 AM
Turn "Use Bytes For All SEO options?" when using Google XML Sitemaps Plug-in rjwhitlock Plugins & Atahualpa 1 Aug 23, 2009 01:05 PM
CSS file went to "0" bytes suddently Ponics Atahualpa 3 Wordpress theme 1 Jan 5, 2009 01:49 PM
"Catchable fatal error" ... please try this file Flynn Atahualpa 3 Wordpress theme 5 Dec 18, 2008 03:25 AM


All times are GMT -6. The time now is 09:02 PM.


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