• Resolved JoJota

    (@jojota)


    Hello,

    I have encountered a strange behaviour with the fileaway shortcut. Files with the following pattern are not displayed for me:

    [anything][two or more numbers]x[two or more numbers][file extension]

    e.g. “a34234234aaaa47x99.txt” is not shown but “a34234234aaaa47x99k.txt” is.

    Does anyone else has the same problem?

Viewing 1 replies (of 1 total)
  • Plugin Author thomstark

    (@thomstark)

    The file that isn’t showing up follows the regex pattern of WordPress image thumbnail files. You can open up wp-content/plugins/file-away/lib/inc/inc.filters.php

    The line in question is line 13:

    $excluded = preg_match('/\d{2,}[Xx]\d{2,}\./', $file) ? true : false;

    You can comment that out like so:

    //$excluded = preg_match('/\d{2,}[Xx]\d{2,}\./', $file) ? true : false;

Viewing 1 replies (of 1 total)
  • The topic ‘File not shown’ is closed to new replies.