Okay
  Public Ticket #2078468
File away directory limit
Closed

Comments

  •  3
    Petro started the conversation

    Hello,

    one more thing to discuss is the File Away File Manager.

    There are only 5 Directories, it means, 5 folders on the server for sharing Files with File Away. 

    But, each project need its own folder for files, that is logically. 
    So imagine the situation: we have more than 5 projects (which will 100% happen). What should we do?  And where should we save the files for each project, when its only 5 folders for it?

    Best regards,
    Petro Kozak

    Attached files:  12.07.6.png

  •  620
    François replied

    Hello Petro,

    These are "Base directories". Which support -> Child directories. 

    So you have as many folders as you've space available on your server. The base-folder is just the root. 

    For the projects, we automatically create sub folders in the directory, so no problem here. We've customers with more than a 100 projects and therefore directories, it runs finesmile.png 

    Have a nice day.

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •  3
    Petro replied

    Hello,
    I have such a question. 

    All folders, either File Away Directories or Project folder, they all are located on the server. 

    But what happens if some user will upload the file with some virus inside, for example with Trojan?

    Can file be checked before uploading? Because if not, I dont now how to use your file management, because its simply unsafe.

    Best regards,
    Petro Kozak

  •  620
    François replied

    Hi Petro, 

    You're right. That plugin is just a file manager so it's your job to manage the security here. How? 

    Just don't allow executable files. Limit the file types and you'll be all set. 

    File Away does have some settings for this as well. 

    You're also definitely free to use an other plugin that manages your files if you don't like File Away, it's a free optional plugin not a theme component. Just the best one we found so far.

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •  3
    Petro replied

    Hello Francois,
    ok, I understood. 

    But when we are talking about file sharing in the projekt, which is Woffice feature, how do I manage security there?
    And could you please show me how to configure security settings so that executable files are not allowed?
    Best regards,
    Petro Kozak

  •  620
    François replied

    Hello Petro, 

    I would need a real example of a breach or corrupted file uploaded as we never ever had any issue with that. So I don't see how that'd be possible. 

    You can also override the function that creates the File Away shortcodes here: 

    /**
         * Returns the File Away file manager
         */
        function woffice_projects_fileway_manager($post_slug) {
            $sub_name = "projects_" . $post_slug;
            /**
             * Filter to enable or not the manager mode for the project file manager
             *
             * @param bool
             */
            $has_manager_mode = apply_filters('woffice_projects_fileway_manager_mode', true);
            $manager_att = ($has_manager_mode) ? 'manager="on"' : '';
            /* We output the directory */
            echo do_shortcode('[fileaway base="1" makedir="true" sub="' . $sub_name . '" '.$manager_att.' type="table" directories="true" paginate="false" makedir="true"  flightbox="images" bulkdownload="on"]');
            /* We output the file uploader */
            echo do_shortcode('[fileup base="1" makedir="true" exclude=".exe,.php" matchdrawer="true" sub="' . $sub_name . '"]');
        }

    In you child theme's functions.php file and change anything about it. 

    The File Away shortcode are documented in your admin aread in the File Away page > Tutorial tab. As you can see, there is already a :

    exclude=".exe,.php"

    You're free to add more items depending on your needs.

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •  3
    Petro replied

    Hello,

    when I open my Child Theme Functions.php file, I see only this:

    https://prnt.sc/oh4rjb

    Do I open the wrong File?   I opened /wordpress/wp-content/themes/woffice-child-theme/functions.php  file.

    Best regards,
    Petro Kozak

  •  276
    Abhishek replied

    Hello Petro,

    Yes it's the correct file. 

    If you would like to learn more about child theme you can refer this article 

    https://developer.wordpress.org/themes/advanced-topics/child-themes/

    Otherwise just ignore it and continue making the changes you would like.

    Have a nice weekendsmile.png

    Kind Regards,

    Abhishek 

    Want feedback on your awesome Intranet? Get yourself a beta access on Feedier.com.

    Keen on Woffice ? Please take a few seconds to give us a 5-star review on ThemeForest.

  •  3
    Petro replied

    Hello,

    if it is the correct file, then I dont understand why I see what I sent you on the screenshot.

    I thought that functions.php should include all theme functions, and not 8 lines of code?
    Or am I wrong?

    Have a nice weekend!

    Best regards,
    Petro Kozak

  •  620
    François replied

    Hi Petro,

    It's not the theme functions.php BUT the child-theme's functions.php file. Which is different. See Abhishek's link for details please. 

    So you can copy/paste in that file any function/action/filter to override the parent theme or plugins. 

    That's not something defined by Woffice at all but rather defined in the WordPress architecture.

    Have a nice weekend.

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •  3
    Petro replied

    Hello,

    that's how Child Themes functions.php looks like when I open it. See the screenshot attached. 
    Should it look like that?

    Best regards,
    Petro Kozak

    Attached files:  woffice child theme.png

  •  620
    François replied

    Yes, that's perfect, you can add any function there and it will override the parent one.

    Including the one I've shared here: https://alkaweb.ticksy.com/ticket/2078468/#comment-10671420

    Have a nice day

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •  3
    Petro replied

    Hello,

    I added the code in the child theme functions.php file, but nothing changed.
    I upload .exe and .php files and get neither a message that this action isnt allowed nor some art of blocking the action.


    Did I maybe do something wrong?
    You have the FTP and ADMIN access, could you please check this thing and fix it if I did something wrong?


    Best regards,
    Petro Kozak

  •  620
    François replied

    Hi Petro, 

    Woffice is basically just displaying the File Away shortcode. If there is one or several attributes not working on your end, I'd recommend you to get in touch with the plugin author: https://wordpress.org/support/plugin/file-away/

    As he'll be the one with the ability to change and fix it. 

    In the meantime, I'll open an issue on our end so a developer can have a look and try to reproduce it. 

    Have a nice day.

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •  3
    Petro replied

    Hello,

    thank you for reproducing the error on your end for checking the issue. 

    In the meantime, can you please also tell me, where exactly should the shortcodes be added on the page?
    Could you probably send me some screenshots so that I can look how the shortcodes exactly should be added and configured on the page?

    Best regards,
    Petro Kozak

  •  620
    François replied

    Hello Petro, 

    Again, that's not something the theme has any impact on, you can use any attribute from the plugin's shortcode as they explain on the Tutorials page.

    Whenever you want to get a shortcode from the plugin, use the Shortcode builder (see attached image); it's very powerful and will save you plenty of file. From the "Classic" blocksmile.png

    Attached files:  Add_New_Page_‹_Woffice_dev_—_WordPress.jpg

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •  3
    Petro replied

    Hello,
    thank you! I found the shortcode and added it to the page, and it works now. PHP and EXE files are not allowed to upload.

    But I still have a question.   
    When we are talking about the doc  files, it is possible to add the executable function in it, which will be execyted after opening. Thats exactly the way how some bad people add viruses it doc. files. 


    Is File Away manager able to detect if there is such a function in the file before uploading it on the server?

    Best regards,
    Petro Kozak

  •  620
    François replied

    Hi Petro, 

    As far as I know, no. They manage the file upload process not the server security. You need a security plugin for that. That'd scan your directory. 

    I don't have any specific recommendation.

    Have a nice day. 

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/