Jump to content


Photo
Cris D.

  • : Jan 27 2008 03:59 AM
  • : Jan 27 2008 10:10 AM
  • : 18.91K
  • : 4613
  • : 852

  • 27 Jan 2008 front-end File Manager

front-end File Manager





This snippet is based on the snippet uploadForm by Cris D and ShowFiles snippet by Ralph.  Although similar to the upload form, this snippet is basically a whole module that requires little configuration to get it working.

USES:
It allows admin to set a folder, for uploading while controlling the filename, filetypes, file size, and custom messages.  Uploaded files are instantly listed underneath the upload form as they are uploaded with a href link to download or (if logged in- delete) them.

CONFIGURATION DETAILS:
Permissions are set to NULL on installation by default, make sure you either authenticate the page or set perms=simple or perms=roles depending on your required security settings on your site.

An example of many of the parameters used in a snippet call:
[!frontendFileManager?uploaddir=assets/uploads&allowed_ext=jpg,bmp,png&max_size=80000&perms='simple'&uploadDescription= your pdf files.&type_of_file=picture&blockedMessage=Log in to upload files.!]

NOTES:
This snippet attempts to create to folder name that you set but due to some server settings, this may have to be done manually and CHMOD to 0777.

The snippet is configured to allow multiple upload forms and file lests per page.

All uploads are stored in the upload folder and all upload info stored in a dedicated table including:
upload user id, type of file, folder where stored, filename, file extention, timestamp.

Files can also be deleted from the same window: if logged in, a "delete" button appears beside the file and when deleted, deletes the corresponding row from the table as well as the file.

See in action here:








0 members, 0 guests, 0 anonymous users