WordPress.org

Ready to get started?Download WordPress

Forums

WP file upload and manager by N-Media
sanitize_text_field problem (2 posts)

  1. marco-polo
    Member
    Posted 1 year ago #

    Hi.
    Thanks for your plugin.

    If an user upload a file with more white spaces in the filename your script use sanitize_text_field to delete them. But now there are a difference between the real file name and the fileName in data base.

    Ok, we can replace sanitize_text_field($_POST['file-name']); with $_POST['file-name']; in upload-form.php but it is the best solution?

    http://wordpress.org/extend/plugins/nmedia-user-file-uploader/

  2. N-Media
    Member
    Plugin Author

    Posted 1 year ago #

    Yes you can replace it, there won't be any issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.