WordPress.org

Support

Support » Plugins and Hacks » Add From Server » [Plugin: Add From Server] Replace spaces in filenames with dashes

[Plugin: Add From Server] Replace spaces in filenames with dashes

  • Hello i love this plugin except one thing…
    When a user uploads a file with spaces, the spaces are not replaced with dashes as they are when using the WordPress uploader.
    I use Add From Server to upload videos to use with the JW Player Plugin. But JW Player does not allow spaces in filenames: “http://example.com/uploads/file name here.jpg” automatically turns into “http://example.com/uploads/filenamehere.jpg”

    WordPress has a function to replace spaces with dashes in file names: http://codex.wordpress.org/Function_Reference/sanitize_file_name

    is there anyway to incorporate this function into this plugin??

    Thanks.

    http://wordpress.org/extend/plugins/add-from-server/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Dion Hulse

    @dd32

    Thanks for your report pbsrg, I’ll have a look into what is happening, AFAIK, I’m using the same file sanitization that the WordPress uploader uses, but given what you suggest, I might’ve missed something!

    Thanks Dion, I appreciate you looking into this.

    Also after reading my first post, I think I wasn’t completely clear on this: I upload these files with an FTP software. When I add them to my media library via Add From Server, it would be nice if the spaces and special characters were removed from the file name at that time.

    +1

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Add From Server] Replace spaces in filenames with dashes’ is closed to new replies.
Skip to toolbar