store filename path

Posted on 2005-05-10
Last Modified: 2013-12-24
Using <input type="file" to search for a filename and store in a database field.  The "\" and the characters following it get treated as a control character.  How can I avoid this?
Question by:dmarnlo
    LVL 20

    Expert Comment

    can you display your code? it would be easier to explain the problem as well as know what is going wrong... :o)
    LVL 9

    Expert Comment

    If you're using regular expressions, you have to escape the control characters with a backslash: \\

    LVL 17

    Accepted Solution

    Just run
    replace( string, "\", "\\", "all" )
    over your regex
    LVL 7

    Expert Comment

    Wherever you have your regex, instead of using a single \ ... use a double \\ which tells the regex engine to escape the backwards slash itself.

    Featured Post

    Network it in WD Red

    There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

    Join & Write a Comment

    Suggested Solutions

    Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
    Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now