473,396 Members | 1,895 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Upload a file w/o a user interface?

From the URL Query String I'll get the file path like this:

private void Page_Load(object sender, System.EventArgs e)
{
string sFilePath = Request.QueryString["FilePath"];

}

Now that I have the path how do I upload the file to the server?

Thanks!
Nov 18 '05 #1
2 1143
You don't have the security rights to upload a file at will without the
user's interaction. If you did, this would be a major security hole.
They have to select the file to be uploaded via an html file input control.

"vbMark" <no@email.com> wrote in message
news:Xn************************@130.133.1.4...
From the URL Query String I'll get the file path like this:

private void Page_Load(object sender, System.EventArgs e)
{
string sFilePath = Request.QueryString["FilePath"];

}

Now that I have the path how do I upload the file to the server?

Thanks!

Nov 18 '05 #2
Makes sense.

"Marina" <so*****@nospam.com> wrote in
news:OX**************@tk2msftngp13.phx.gbl:
You don't have the security rights to upload a file at will without
the user's interaction. If you did, this would be a major security
hole. They have to select the file to be uploaded via an html file
input control.

"vbMark" <no@email.com> wrote in message
news:Xn************************@130.133.1.4...
From the URL Query String I'll get the file path like this:

private void Page_Load(object sender, System.EventArgs e)
{
string sFilePath = Request.QueryString["FilePath"];

}

Now that I have the path how do I upload the file to the server?

Thanks!



--
http://www.vbmark.com/
A good place to start.
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Dustin | last post by:
I'm looking for a PHP script that supports multi-file upload. However, because my users could potentially be uploading hundreds of files, the existing multi-file upload scripts that people have...
3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
5
by: Dave Smithz | last post by:
Hi There, I have a PHP script that sends an email with attachment and works great when provided the path to the file to send. However this file needs to be on the same server as the script. ...
2
by: brett | last post by:
A Mac doesn't see the upload button that a windows machine does. What is the equivalent HTML for a Mac? Thanks, Brett
1
by: theburnetts | last post by:
I am building an ASP.NET application that has a requirement that the user should be able to download all of the data that they have input into the system and save it to a file on their local PC. ...
1
by: joshbeall | last post by:
Hi All, If I drop a form onto my page that allows file uploads, I know well enough how to handle the file upload in the server side via PHP. However, I have a question: when my browser...
0
by: SEMIH DEMIR | last post by:
Sitelerden birinde verilen yabancı kaynakli bir scriptti duzenledim yanlız birseyin içinden bir turlu cıkamadım işin aslı ilk defa persistin upload componentini kullanacam yanlız suanki haliyle...
7
by: pbd22 | last post by:
hi. i am having probs understanding how to grab a file being uploaded from a remote client. i am using hidden input fields for upload such as: <input id="my_file_element" type="file"...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.