Easy User Uploads Feature Added

We’ve just added a new and recently requested feature to the Simple Intranet plugin, which is easy uploads right from a page.  Typically an admin or editor would have to use the Media uploader inside the WordPress dashboard.  Well, no more!  You can now include an upload form to add files directly to your “/wp-content” folder.  You can restrict who sees the upload form by role, and what directory you are uploading the files to.

Display Form

Just add the shortcode: [upload uploadpath=”testing1″] to your post or page to add an upload form.  This example shows an upload form where files will be uploaded to the “yoursite.com/wp-content/testing1” directory where default upload size is 10 MB.

Other examples;
[upload uploadpath=”testing1″ ]
– shows an upload form to the Administrator only where files will be uploaded to the “yoursite.com/wp-content/testing1” directory

[upload uploadpath=”testing1″   uploadrole=”editor,author” maxsize=”25″]
– shows a listing of all files uploaded to the “yoursite.com/wp-content/testing1” directory who are assigned Editor or Author roles by WordPress.

Other options for inside the [upload] shortcode;

  • uploadpath: The default value is “uploads”. If you want to upload files outside wp-content folder, then put a double dot (..) at the beginning of your uploadpath value.
  • uploadid: This is the ID of every instance of the plugin inside the same page, where IDs are basic integers only.
  • uploadtitle: The heading above the upload button, where the default value is “Upload a file”.
  • selectbutton: The title of the select button, where the default value is “Select File”.
  • uploadbutton: The title of the upload button, where the default value is “Upload File”.
  • uploadpatterns: This is allows you to restrict the types of files that can be uploaded. For instance, in order to upload only pdf files put “*.pdf”. You can use more that one filters, separated by comma, for instance “*.pdf,*.doc”.

Display Files

[upload_list dir=”testing1″]
– shows a listing of all files uploaded to the “yoursite.com/wp-content/testing1” directory

Screenshot Upload Example