Support » Plugin: Wordpress File Upload » stl file upload fail

  • I am trying to upload a .stl file. Are there any restrictions on file types in the free version?

    Thanks,
    sijah

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter sijah

    (@sijah)

    im new wordpress please use simple language

    Plugin Author nickboss

    (@nickboss)

    Hi, yes stl files are not allowed by default. Here is what you need to do:

    1. Add the following lines inside functions.php file of your theme:

    global $wfu_extension_blacklist;
    if ( isset($wfu_extension_blacklist["stl"]) ) unset($wfu_extension_blacklist["stl"]);

    2. Add stl extension in the shortcode by opening the visual editor of the plugin and setting the following in Allowed File Extensions: *.*, *.stl

    Regards

    Nickolas

    Thread Starter sijah

    (@sijah)

    showing this massage when i tried to past above lines in theme function(function.php)
    (Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.)

    Plugin Author nickboss

    (@nickboss)

    Does functions.php file contains the symbol ?> at the end? If yes, you need to put these 2 lines before this symbol.

    Nickolas

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘stl file upload fail’ is closed to new replies.