Title: Allowed file types not saving + error
Last modified: May 7, 2018

---

# Allowed file types not saving + error

 *  Resolved [alriknijdam](https://wordpress.org/support/users/alriknijdam/)
 * (@alriknijdam)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/allowed-file-types-not-saving-error/)
 * Hi there,
 * First of all thanks for creating this plugin!
 * When I go to option > allowed file types and remove certain file types I have
   no option to save those settings. I thought they might save automatically, but
   when I visit that page again all file types are back.
 * When I try to upload a file that shouldn’t be supported it does upload and show
   in the list, but when I go to preview it, it says ‘Sorry the file type you are
   trying to preview is unsupported.’ (that’s correct ofcourse, but I also don’t
   want them to upload in the first place.)
 * Also when uploading I get an error: An Error has occured on line 320 of the mdocs-
   functions.php file. I looked it up and it’s this part `$upload_dir = wp_upload_dir();`
   
   This error started after I tried to disallow certain file types, before I did
   that there was no error (and I made no other changes).
 * Can you please help me to fix these issues?
 * Best regards,

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [bhaldie](https://wordpress.org/support/users/bhaldie/)
 * (@bhaldie)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/allowed-file-types-not-saving-error/#post-10262390)
 * Just so I can rule it out, you are the Administrator of you site?
 *  Thread Starter [alriknijdam](https://wordpress.org/support/users/alriknijdam/)
 * (@alriknijdam)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/allowed-file-types-not-saving-error/#post-10262648)
 * Yes I am, so if you need me to try something or supply you with more information
   you can ask 🙂
 *  Plugin Author [bhaldie](https://wordpress.org/support/users/bhaldie/)
 * (@bhaldie)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/allowed-file-types-not-saving-error/#post-10262671)
 * First off, changes made to the file type list are saved automatically. So we 
   should start there. Add a file or remove on with a browser inpector open and 
   tell me if you see any javascript errors that occur.
 *  Thread Starter [alriknijdam](https://wordpress.org/support/users/alriknijdam/)
 * (@alriknijdam)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/allowed-file-types-not-saving-error/#post-10262777)
 * No javascript error occur when I remove or add any file type.
 * I do get a warning about my SSL certificate:
 * > The SSL certificate used to load resources from [https://www.paypalobjects.com](https://www.paypalobjects.com)
   > will be distrusted in M70. Once distrusted, users will be prevented from loading
   > these resources. See [https://g.co/chrome/symantecpkicerts](https://g.co/chrome/symantecpkicerts)
   > for more information.
 * I tried a couple of other pages and I only get this error when I go to Memphis
   documents.
    Might this be the cause?
 *  Plugin Author [bhaldie](https://wordpress.org/support/users/bhaldie/)
 * (@bhaldie)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/allowed-file-types-not-saving-error/#post-10262834)
 * no that should cause any issue, but I would look into that issue sounds like 
   you need to renew your SSL cert to TLS 1.1 or higher.
 * Try adding a file type like txt for example and then try to upload and view that
   file type. does that work?
 *  Thread Starter [alriknijdam](https://wordpress.org/support/users/alriknijdam/)
 * (@alriknijdam)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/allowed-file-types-not-saving-error/#post-10262955)
 * Yes I’m going to look into it, I need to update it otherwise my site stops functioning
   after 20 july (I’m glad I found it out this way before it happened).
 * I first removed the file type txt and then added it again to the allowed types.
   
   I made a text-file using notepad (ofcourse saving it as .txt) and uploaded it.
   Now it does upload just fine but I get the same error I was talking about in 
   the first post:
 * > Memphis Error:
   >  An Error has occured on line 320 of the mdocs-functions.php
   > file.
 * Looking in the inspector while uploading it says this 3 times (under ‘no verbose’):
 * > [Violation] Forced reflow while executing JavaScript took … ms
 * After that, when I choose to ‘Go to post’ I get the following message:
 * > Sorry the file type you are trying to preview is unsupported.
 * I am able to share and download it. It’s a pitty but I don’t know if this has
   anything to do with it because pdf files are previewed like aspected.
 * BTW, thanks for the effort and responses!
 *  Plugin Author [bhaldie](https://wordpress.org/support/users/bhaldie/)
 * (@bhaldie)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/allowed-file-types-not-saving-error/#post-10263515)
 * Sorry the file type you are trying to preview is unsupported. is Normal for txt
   file… they are unsupported in preview. the only documents that preview works 
   for is PDF. If you are looking for more options when it comes to preview I would
   recommend using the BOX preview found in the mDocs settings.
 * supported file types:
    [https://wordpress.org/plugins/memphis-documents-library/#supported%20documents%20types%20using%20local%20preview](https://wordpress.org/plugins/memphis-documents-library/#supported%20documents%20types%20using%20local%20preview)
    -  This reply was modified 8 years, 1 month ago by [bhaldie](https://wordpress.org/support/users/bhaldie/).
 *  Thread Starter [alriknijdam](https://wordpress.org/support/users/alriknijdam/)
 * (@alriknijdam)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/allowed-file-types-not-saving-error/#post-10266502)
 * That’s what I already thought.
 * I just discovered something way worse. Memphis documents is blocking my abillity
   to upload files directly te the wordpress media library. It says the file type
   isn’t alowed for security reasons.
    When I disable Mephis documents I can upload
   just fine, but as soon as I disable it the problem is back.
 *  Plugin Author [bhaldie](https://wordpress.org/support/users/bhaldie/)
 * (@bhaldie)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/allowed-file-types-not-saving-error/#post-10266589)
 * Memphis is using the WordPress file restrictions. So for example if you remove
   docx from the list in mDocs this will also remove the ability to upload to the
   WordPress media area as well.
 * When you disable mDocs you are reverting back to WordPress default settings.
 *  Thread Starter [alriknijdam](https://wordpress.org/support/users/alriknijdam/)
 * (@alriknijdam)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/allowed-file-types-not-saving-error/#post-10266772)
 * Is it an idea to seperate memphis documents and wordpress’s file restriction 
   in a future update?
 *  Plugin Author [bhaldie](https://wordpress.org/support/users/bhaldie/)
 * (@bhaldie)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/allowed-file-types-not-saving-error/#post-10266803)
 * there is no plans, file restrictions will always use the default WordPress methodology
   I am not going to create my own way of doing thing when WordPress handles it 
   for me.
 * Cheers 🙂

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Allowed file types not saving + error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/memphis-documents-library_91918f.
   svg)
 * [Memphis Documents Library](https://wordpress.org/plugins/memphis-documents-library/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/memphis-documents-library/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/memphis-documents-library/)
 * [Active Topics](https://wordpress.org/support/plugin/memphis-documents-library/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/memphis-documents-library/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/memphis-documents-library/reviews/)

## Tags

 * [not saving](https://wordpress.org/support/topic-tag/not-saving/)

 * 11 replies
 * 2 participants
 * Last reply from: [bhaldie](https://wordpress.org/support/users/bhaldie/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/allowed-file-types-not-saving-error/#post-10266803)
 * Status: resolved