• First, thanks for the latest update.
    I Have issues with members submitting files with file names as long as the Gettysburg Address.
    Is there a place in EntryWizard to restrict file name length?
    If not, can it be added to settings or layouts?
    I did find
    tps://codex.www.ads-software.com/Plugin_API/Filter_Reference/excerpt_length
    wp_trim_excerpt() is located in wp-includes/formatting.php. line 3305
    But I am not sure if it is correct to change here.

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Josie Stauffer

    (@joanne123)

    I do agree with you — I use the command line a lot, and find excessively long filenames really annoying.

    When designing the plugin, I did give some thought to generating the filenames instead of using the actual ones uploaded by the users. But I decided that, in most cases, using the user’s filename would make it easier for admins to identify a given file when needed.

    The function you mention has nothing to do with filenames, it works on the content of a post.

    If you really want to modify code, and know how to, you can do it in the ‘ewz_to_valid_fname’ function in includes/ewz-common.php. But you would have to redo the change with each new version.

    Or the other thing you could do would be to use the “Generate the entire filename from the prefix” option. But in that case, please read the help item carefully.

    Actually requiring the user to shorten the filename before uploading would be possible, but quite a lot more work for me, and possibly irritate users. ( Have you tried just asking them to use shorter ones ?? )

    Thread Starter ronc

    (@ronc)

    Ask? I have requested, cry about it, made then feel how much work it is for me, screaming & yelling did not work either.
    I just took a peek at prefix. and it looks good as I transform the file name once I get it. So the original file name has little value to me.
    Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to limit the file name length’ is closed to new replies.