Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
S sgt-sterling-filemanager
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • SGT - Public
  • sgt-sterling-filemanager
  • Issues
  • #1

Closed
Open
Created Jul 20, 2016 by Administrator@rootOwner

Setup Filemanager Example Script

Created originally on Bitbucket by lambjs (Josh Lamb)

The filemanager I've built and used in various Studio projects is suitable. We'll store it in a new repo called SGT.Sterling.Filemanager. This will be a mini app that creates a barebones example of the usage of filemanager.

  1. SGT.HowardTravel.HowardTravelWebsite repo has a filemanager:

    • /internal/library/legacy/class.filemanager.php
    • /public_html/staff/library/filemanager/* -
    • /public_html/staff/library/imagemanager/* - Not sure if this is actually being used?
    • /public_html/staff/library/js/tinymce.filemanager.js - Jquery based configuration which should enable TinyMCE elements with a filemanager upload interface attached
    • /public_html/staff/library/js/sgx.js
    • /public_html/staff/modules/downloads - Studio module that ties it all together
    • /internal/config.php - Review to see filemanager config options
  2. Create a bare-bones application that acts as a demo app for the filemanager tool. No need for authentication or menus like the studio, just bare implementation

    • /composer.json
    • /config.php - Configuration parameters
    • /library - all php class code
    • /media - Where the file uploads should end up
    • /www/.htaccess - Should route requests to /media/* to a filegate.php script (see below)
    • /www/js - all JavaScript
    • /www/img - all images
    • /www/*.php - example usage scripts
  3. Needs to have an ajax endpoint which processes various backend tasks ie. upload, etc.

  4. Filegate (ie. tool that accesses media folder which should be set to a location outside the www root. This enables all media requests to be processed by PHP and would allow us to add additional post-processing and/or to use access control rules, etc)

  5. Filemanager itself - browser of images

  6. File Interface - to be contained in a popup window, will interact with TinyMCE to return an image path to a calling Javascript process

  7. TinyMCE integration example page - Using the tinymce.filemanager.js, setup an MCE instance that has an attached Filemanager interface

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking