We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28343
    • 1 Posts
    dear board members

    i have a problem saving a snippet or more clearly, just this line of code is not saved:

    move_uploaded_file($_FILES["file"]["tmp_name"],$path . $_FILES["file"]["name"]);


    is there something wrong with this line?

    i’m running MODx Revolution 2.0.6-pl (traditional), PHP Version 5.2.14, Server API is CGI, MySQL Server Version: 5.0.91-community, MySQL-Client-Version: 4.1.22. i’m using chromium browser.

    best, stahl
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Sounds like some kind of security setting on your server. Mod_security and suhosin can block any content in a POST that they don’t like.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org