The MU forums have moved to WordPress.org

disable file upload in post (2 posts)

  1. raxitsheth
    Member
    Posted 16 years ago #

    Hi,

    I want to disable file upload in post.
    one hack is to set file size to 0 mb, but any way by which the browse button and file path not come during post.

    <no image/photos/sounds etc required to store on my server.>
    they can embed link,

    Note : this disable is only in post, Also i want to disable any JavaScript code embed in post.

    -Raxit

  2. theapparatus
    Member
    Posted 16 years ago #

    Easiest way for a new install would be just to remove the permissions to do so. Take a look at the wp-admin/includes/schema.php file and look for where the 'upload_files' options are assigned. Just comment those out.

    For a in use install, you're going to have to find where the form is inserted and comment out that call. (Heck that might even be better.) I can't look at the code currently so I can't tell you exactly.

About this Topic

  • Started 16 years ago by raxitsheth
  • Latest reply from theapparatus