matjazp Posted January 6, 2018 Share Posted January 6, 2018 A module for managing files and folders. Supports creating, opening (e.g. viewing, playing, editing), renaming, moving, copying, deleting and searching for files. You can also view and change (not supported on Windows) file and directory permissions. https://github.com/matjazpotocnik/ProcessFileManager The author of FileManager component is (c) 2006 - 2018 Gerd Tentler, http://www.gerd-tentler.de/tools/filemanager/. I modified it to work with ProcessWire as a module. Please see license files on usage in commercial projects! 18 1 Link to comment Share on other sites More sharing options...
dragan Posted January 6, 2018 Share Posted January 6, 2018 Awesome! Just a few remarks after trying it out for 5-10 minutes... My main concern with such a powerful tool is security: I see you created a special permission for this module. I guess that your intention was that only superusers are able to use this module. If I allowed regular editors use this module, it'll only be a question of time till someone breaks stuff (editing core files, PHP etc.). I just want to make sure there's no nasty backdoor (like with WP's code editor, that is still installed and enabled by default, and is still a massive security hole)... 1 Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted January 6, 2018 Share Posted January 6, 2018 This module is awesome! Exactly what I was thinking about these holidays. I was about to try to integrate codiad into PW, but it is probably not needed anymore. The editor is obviously codemirror (have you considered monaco, by the way). Is this one a filemanager used? A few questions: Does it seem possible to limit edit capabilities for roles by directory/filetype in the future? Does it seem possible to run terminal commands through the interface for on-site asset building and such? Are there any known platform limitations? Link to comment Share on other sites More sharing options...
matjazp Posted January 7, 2018 Author Share Posted January 7, 2018 8 hours ago, dragan said: My main concern with such a powerful tool is security: I see you created a special permission for this module. I guess that your intention was that only superusers are able to use this module. Yes. 8 hours ago, dragan said: If I allowed regular editors use this module If you allow other users to use this module than it's not free anymore, see license file for filemanager. 8 hours ago, dragan said: I just want to make sure there's no nasty backdoor Unfortunately, I can't guarantee that. This is first alpha release of the module, just to see if there is any interest in this at all. I didn't write the components, I just made filemanager works in PW (and it was a LOT of work too). 2 Link to comment Share on other sites More sharing options...
matjazp Posted January 7, 2018 Author Share Posted January 7, 2018 18 hours ago, Ivan Gretsky said: I was about to try to integrate codiad into PW, Hmm. never saw this, will take a look. EDIT: I like the way codiad works, that's how filemanager should work. It has more modern approach, it's fast, uses ace, it's more developer-centric. 18 hours ago, Ivan Gretsky said: (have you considered monaco, by the way). I did, tried it somewhere else (ProcessFileEdit perhaps?), but failed. 18 hours ago, Ivan Gretsky said: Is this one a filemanager used? Yes. I modified my original post to reflect that, I just forget it yesterday. 18 hours ago, Ivan Gretsky said: Does it seem possible to limit edit capabilities for roles by directory/filetype in the future? Does it seem possible to run terminal commands through the interface for on-site asset building and such? Everything is possible, but I'm not sure in what direction will this module move (if at all). filemanager by itself allows hiding files of certain types, but it's disabled. The best way would be to try the original filemanager and all the options available (or you can try in the module itself, check config.inc.php). 18 hours ago, Ivan Gretsky said: Are there any known platform limitations? On windows, you can't change permissions. Displayed permissions might be inaccurate. I modified filemanager so that at least file permissions should be correct. On file info, you will see the correct owner of the file/folder and acl list. 1 Link to comment Share on other sites More sharing options...
qtguru Posted January 7, 2018 Share Posted January 7, 2018 17 hours ago, matjazp said: A module for managing files and folders. Supports creating, opening (e.g. viewing, playing, editing), renaming, moving, copying, deleting and searching for files. You can also view and change (not supported on Windows) file and directory permissions. https://github.com/matjazpotocnik/ProcessFileManager The author of FileManager component is (c) 2006 - 2018 Gerd Tentler, http://www.gerd-tentler.de/tools/filemanager/. I modified it to work with ProcessWire as a module. Please see license files on usage in commercial projects! This would be the most useful module for me, because I tend to do my sidejobs at the office after work (I know, it's not proper, commuting issues that's why ) and we have a strong Firewall that blocks FTP and CPanel pages, so this will come real handy, am assuming it has a code-editor in it. thanks a bunch. 1 Link to comment Share on other sites More sharing options...
matjazp Posted January 7, 2018 Author Share Posted January 7, 2018 (edited) On 7. 1. 2018 at 1:51 PM, Sephiroth said: am assuming it has a code-editor in it Yes, CodeMirror and, later maybe monaco (PR's welcome). Edited January 8, 2018 by matjazp monaco is now supported 2 Link to comment Share on other sites More sharing options...
qtguru Posted January 10, 2018 Share Posted January 10, 2018 On 1/7/2018 at 4:48 PM, matjazp said: Yes, CodeMirror and, later maybe monaco (PR's welcome). Am looking at that too, I will fork your project over the weekend and see how I can contribute, am really interested in this, though I have a feeling Monaco feels like overkill, but i will evaluate it and see. Link to comment Share on other sites More sharing options...
horst Posted January 10, 2018 Share Posted January 10, 2018 I have a question related to security. AFAIK in a lot of shared hosts that are based upon php as apache module, not a cgi version, the php www-user only (should) have write access to files under assets, not modules and templates. Is there a way, workaround, for those cases to use the module too? Link to comment Share on other sites More sharing options...
adrian Posted January 10, 2018 Share Posted January 10, 2018 2 hours ago, horst said: not modules and templates But if it doesn't have access to "modules" then you can't use the PW Upgrade module either and I am pretty sure there are a lot of people using that. Sure it may not be the most secure approach, but there will always be some trade-off. Link to comment Share on other sites More sharing options...
pwired Posted January 10, 2018 Share Posted January 10, 2018 Hi Sephiroth Did you try net2ftp, monsta ftp and cpanel proxy urls at the office ? Link to comment Share on other sites More sharing options...
matjazp Posted January 10, 2018 Author Share Posted January 10, 2018 2 hours ago, horst said: AFAIK in a lot of shared hosts that are based upon php as apache module, not a cgi version, the php www-user only (should) have write access to files under assets, not modules and templates. That would prevent you from using Upgrade module, but yes, this is how it should be done in secure environments and how I have set all my sites (I'm on windows but the principle is the same). I upgrade (if at all) manually, since I'm the administrator of the server. Filemanager has some more options that might come handy: you can hide specific directories (eg. wire), you can hide "system files", hide file path in file details, hide symbolic link target, you can disable upload, download, edit, copy, rename, move, create, search, permissions. Those options are not available in module config settings, since the module is intended for site admins (superusers) primarily and I assume he would want all features enabled... 1 Link to comment Share on other sites More sharing options...
matjazp Posted January 10, 2018 Author Share Posted January 10, 2018 4 hours ago, Sephiroth said: Am looking at that too, I will fork your project over the weekend and see how I can contribute, am really interested in this, though I have a feeling Monaco feels like overkill, but i will evaluate it and see. Yeah, monaco has large size, 32 MB, and it's slower on start than CodeMirror or Ace. Link to comment Share on other sites More sharing options...
qtguru Posted January 11, 2018 Share Posted January 11, 2018 18 hours ago, pwired said: Hi Sephiroth Did you try net2ftp, monsta ftp and cpanel proxy urls at the office ? Net2FTP logs me out everytime, I feel it must be network related haven't tried monsta FTP but i like the having to just edit the file from the same application however it should only edit the modules and templates and not core code. 1 Link to comment Share on other sites More sharing options...
matjazp Posted January 11, 2018 Author Share Posted January 11, 2018 5 hours ago, Sephiroth said: but i like the having to just edit the file from the same application Maybe ProcessFileEdit module would be enough for you? Link to comment Share on other sites More sharing options...
qtguru Posted January 11, 2018 Share Posted January 11, 2018 On 1/11/2018 at 7:28 PM, matjazp said: Maybe ProcessFileEdit module would be enough for you? More than enough , thanks alot this is what i needed. Link to comment Share on other sites More sharing options...
adrian Posted January 11, 2018 Share Posted January 11, 2018 7 minutes ago, matjazp said: Maybe ProcessFileEdit module would be enough for you? ProcessFileEdit is fantastic and I think ProcessFileManager has a useful role as well when you need to create/delete/move files around and don't have your dev machine with you. Also, here's a sneak peak for the new File Editor Panel in Tracy (coming soon!). This comes with: Test (changes don't affect other users) and Restore functionality (in case you save and made a major mistake) for all file types and even continues to work if you accidentally introduced a fatal error into the code you just saved - this allows you to recover without needing FTP access. Of course this doesn't replace the functionality of ProcessFileManager at all, but another tool in the arsenal. 3 Link to comment Share on other sites More sharing options...
Gideon So Posted February 9, 2018 Share Posted February 9, 2018 Hi, I get the following error when trying to edit a file. I only get a blank editor. ReferenceError: require is not defined Gideon Link to comment Share on other sites More sharing options...
matjazp Posted February 9, 2018 Author Share Posted February 9, 2018 I'm at work right now so can't help you much, but please try CodeMirror editor (in module settings) instead of monaco editor. Link to comment Share on other sites More sharing options...
tcnet Posted March 21, 2021 Share Posted March 21, 2021 Please, can somebody tell me the reason why this useful module is not available in the module directory? Link to comment Share on other sites More sharing options...
szabesz Posted March 21, 2021 Share Posted March 21, 2021 6 hours ago, tcnet said: can somebody tell me the reason why this useful module is not available in the module directory? You can ask Ryan to re-publish it, see: https://processwire.com/talk/topic/24666-new-blog-processwire-modules-directory/?do=findComment&comment=212155 Link to comment Share on other sites More sharing options...
matjazp Posted March 22, 2021 Author Share Posted March 22, 2021 21 hours ago, tcnet said: Please, can somebody tell me the reason why this useful module is not available in the module directory? The module was never published in the module directory :-) 2 Link to comment Share on other sites More sharing options...
tcnet Posted March 24, 2021 Share Posted March 24, 2021 On 3/22/2021 at 6:12 PM, matjazp said: The module was never published in the module directory :-) Do you consider to maintain this module? Link to comment Share on other sites More sharing options...
matjazp Posted March 24, 2021 Author Share Posted March 24, 2021 2 hours ago, tcnet said: Do you consider to maintain this module? Yes and no. A large part of this module is not written by me, so I can't support any new features, I can only make it work as a Processwire module. That's why I didn't publish it in the module directory. It's also a powerful tool with the potential of wiping your site if it lands in the wrong hands, so I didn't want too much publicity. I don't work with PW so much anymore, and I'm becoming a bit rusty and can't afford to maintain too many modules. Nevertheless, I will do what I can to help if problems arise. 2 Link to comment Share on other sites More sharing options...
Pixrael Posted March 24, 2021 Share Posted March 24, 2021 5 hours ago, matjazp said: I don't work with PW so much anymore Is Processwire losing traction?? ... lately I have read many comments in this forum from several of the most prominent people in the discussions who are no longer working with Processwire .. ??? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now