Code snippet to Upload a File

Posted on 2005-04-17
Last Modified: 2012-05-05

Current process:

I type the name of a file in a text field (filename must be in 8.3 naming format); I connect to my web server (via FTP); and, I upload the file to the appropriate directory.

Here is what I want to happen:

Have a field with a browse button next to it (I've seen something like this before).  I click browse... Navigate to my file... Highlight the file... Click Save/Enter...  File is uploaded to the directory on my web server...

I'd like a perl code soltuion so I can try to integrate into an existing application. :-)

Question by:dj4ster
    LVL 84

    Expert Comment

    LVL 84

    Accepted Solution


    Author Comment


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
    A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (,  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    746 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

    14 Experts available now in Live!

    Get 1:1 Help Now