Upload a file to a server via ASP

Posted on 2006-03-30
Medium Priority
Last Modified: 2010-04-06
I want to upload a file via a webpage but i dont want to use another child window or create a form, i want to pass it to another page with other information and do the processing from an asp page, is this possible or do i need to use child windows.  Possible?
Question by:RalphMercurio
  • 4
  • 2
LVL 25

Expert Comment

ID: 16334930
you can do it automatically, but you will need to set the filepath as some kind of variable, then request it for the upload.

Best bet may be to use a from, that way you can browse for the file that you are uploading.

If you decide to go this route, you can do it all from 1 page.

let me know either way, and I will try some stuff out...

Author Comment

ID: 16334957
I think Im going to go with the first option, If i can fill a text box with the path to the file, and pass this to the next page with post, I should be able to have asp flesh it out as well.  

This is my textfield with a browse button as well:
<input name="filetoupload" type="file" id="filetoupload" size="65" >
still Possible?
LVL 25

Expert Comment

ID: 16335148
sure is.  Do you know if your server has any Upload Components installed?  If so what?

Also what language(s) does your server support?  (Is it a linux server, windows server?)
Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.


Author Comment

ID: 16335192
Windows IIs sevrer 2003, no componets there as I know of, but I can isntall naything needed as long as we dont need to pay for it.  so it is possible?
LVL 25

Expert Comment

ID: 16335490
it's possible.  even without a component.  Just figured I'd ask first because that would have been easier  :)

I'll put something together and get back to you in a little bit
LVL 25

Accepted Solution

kevp75 earned 2000 total points
ID: 16337239
ok..check this out.
let me know when you get it setup, and I'll send ya some code for the form and stuff


Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
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)

622 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