How do I automatically upload files via Javascript+HTML?

Posted on 2009-02-11
Last Modified: 2013-11-18
I'm trying to build a web application that will ask the user for a file and directory on his machine, then upload all the files in the directory with that file's name. So, for example, the user would click on "my_file.doc" and if there's "my_file.xls" and "my_file.pdf" in the same folder, this web app would recognize and try to upload all three files. I got the first part working, so the Javascript (and ActiveX) finds the correct files on the user's machine, but does anybody know how I actually get the browser to upload those files? The ActiveX documentation is severly lacking. Thanks.
Question by:tjgquicken
    1 Comment
    LVL 75

    Accepted Solution


    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
    In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
    The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    755 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

    25 Experts available now in Live!

    Get 1:1 Help Now