Giter VIP home page Giter VIP logo

simple-file-manager's People

Contributors

frantzz avatar jcampbell1 avatar pavelthq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

12delta and-jan

simple-file-manager's Issues

Select the path to see it's content

how could we make it posible to config to see only certain folder eg "uploads", and its content?

Thanks in advance, also one more question, why in the breadcumbs apears this weird path: Home ▸ |.. ▸ |../* ▸ .

Select a home location for files that is separate from the web root

I have noticed that in both the original and this version that there does not seem to be any way to constrain the file manager to only access or show files in a certain, different directory.

I would like to use this as the interface for an OpenWRT NAS I have, but I do not want the security issue of making the files in my web server root readable to others, and I need to only place files in the location that I have the device's drive mounted, since I don't want to write to the device's internal Flash.

Could you add a root_location variable to the script to allow an alternate choice of file location?

Space in directory stops files from listing

Hello,
Thanks for the enhancements. I notice in your fork and the main script, when the directory contains a space, the contents of the directly aren't listed when the directory is viewed.
I'm happy to fix it but I'm not sure where to start. I have basic PHP experience, can you suggest what I should look for to change the code?
Thanks

Unzip not working?

I like this fork because it has a lot more functions built-in but unzip doesn't seem to work.
The following edit I did to the original @jcampbell1 version works. Can you fix yours?
(Not familiar enough with Github to send a proper pull request. Sorry.)

Edit: Oh, it actually works but it unzips the files in a new directory. That's easy to modify. Thanks for forking this project 👍

> error_reporting( error_reporting() & ~E_NOTICE );
53a55
>               'is_zip' => strstr($entry, '.zip'),
68a71,82
> } elseif ($_POST['do'] == 'unzip') {
>     // get the absolute path to $file
>     $path = pathinfo(realpath($file), PATHINFO_DIRNAME);
>     $zip = new ZipArchive;
>     $res = $zip->open($file);
>     if ($res === TRUE) {
>       $zip->extractTo($path);
>       $zip->close();
>     } else {
>       echo "Couldn't open $file";
>     }
>   exit;
241a256,262
>   $('.unzip').live('click',function(data) {
>       $.post("",{'do':'unzip',file:$(this).attr('data-file'),xsrf:XSRF},function(response){
>           list();
>       },'json');
>       return false;
>   });
> 
342a364
>       var $unzip_link = $(' <a href="#" />').attr('data-file',data.path).addClass('unzip').text('unzip');
354c376
<           .append( $('<td/>').append($dl_link).append( data.is_deleteable ? $delete_link : '') )

---
>           .append( $('<td/>').append($dl_link).append( data.is_deleteable ? $delete_link : '' ).append( data.is_zip ? $unzip_link : '' ) )```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.