I want to upload Word .docs to folder in my web server directory...

Posted on 2007-08-06
Last Modified: 2013-11-05

I have candidate's sending me resumes.  I want them to be able to click a button, open their personal file explorer, chose their resume, then click another button and have it uploaded to my web server directory.

Any good asp scripts for that?
Question by:MitchellVII
    LVL 7

    Accepted Solution

    LVL 7

    Assisted Solution

    Try this....
    LVL 5

    Author Comment

    Ok, finally figured it all out.  Here is the entire code to:

    1. Upload Resume to Server.
    2. Email Resume as Attachment to me.
    3. Delete Resume off Server.

    'Upload Resume to Server:
    Set Upload = Server.CreateObject("Persits.Upload")
    Count = Upload.Save(Server.MapPath("\resumes"))

    'Create Email to Send File to Me as Attachment:
    Set myMail=CreateObject("CDO.Message")

    myMail.Subject="New resume!"
    myMail.TextBody="Here's a new resume!"

    For Each File in Upload.Files
        myMail.AddAttachment Server.MapPath("\resumes\" & File.ExtractFileName)

    'Set up Connections:
    myMail.Configuration.Fields.Item("") _

    'Send Email:

    'Delete Resume off Server:
    Dim objfso
    Set objfso = Server.CreateObject("Scripting.FileSystemObject")

    For Each File in Upload.Files
        objfso.DeleteFile(Server.MapPath("\resumes\" & File.ExtractFileName))

    Set objfso = Nothing
    Set myMail=nothing
    Set Upload = nothing

    <form> tag looks like this:

    <form method="post" action="myUploadScript" enctype="multipart/form-data">

    Works like a charm, thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
    Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
    In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
    In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

    758 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

    11 Experts available now in Live!

    Get 1:1 Help Now