473,406 Members | 2,745 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,406 software developers and data experts.

upload file to web-browser

Is there an example how to upload a file from a clients machine to an
ftp-server
from a web-application? (No ftp-software!)
reidarT
Nov 24 '06 #1
5 1967
"reidarT" <re****@eivon.nowrote in news:edHMKz5DHHA.3396
@TK2MSFTNGP02.phx.gbl:
Is there an example how to upload a file from a clients machine to an
ftp-server
from a web-application? (No ftp-software!)

I suggest you use a HTTP Upload instead (to the web server) and then let
the web server handle the FTP connection to the destination server. This is
a more secure and reliable method.

Nov 24 '06 #2
In a Windows form I use

My.Computer.Network.UploadFile( _
"File to upload", _
"ftp://ftp-address" & _
"/path/filename".mdb", _
"ftp-username", "ftp-password", True, 5000)

to do this uplaod.
How can I do the same in an aspx-page?
reidarT
"Spam Catcher" <sp**********@rogers.comskrev i melding
news:Xn**********************************@127.0.0. 1...
"reidarT" <re****@eivon.nowrote in news:edHMKz5DHHA.3396
@TK2MSFTNGP02.phx.gbl:
>Is there an example how to upload a file from a clients machine to an
ftp-server
from a web-application? (No ftp-software!)


I suggest you use a HTTP Upload instead (to the web server) and then let
the web server handle the FTP connection to the destination server. This
is
a more secure and reliable method.

Nov 24 '06 #3
Reidar,

This is a piece of cake in frontpage, aspnet, asp, php etc.

It needs however something special on the serverside to make it possible
which is provided with those uploads in the "input = file runat server" (in
the case of ASPNET)

With clean HTML it is not possible.
(And than not to an FTP server but to an IIS server).

Therefore what is the environment you are busy in.

(You never can upload a file from a client unatended to a server, that is
called hacking and prevented by all browsers).

Cor

"reidarT" <re****@eivon.noschreef in bericht
news:ed**************@TK2MSFTNGP02.phx.gbl...
Is there an example how to upload a file from a clients machine to an
ftp-server
from a web-application? (No ftp-software!)
reidarT


Nov 25 '06 #4
"reidarT" <re****@eivon.nowrote in news:#9Kd7M6DHHA.4396
@TK2MSFTNGP02.phx.gbl:
How can I do the same in an aspx-page?
You'll need a .NET FTP component ... I'm sure there are some free ones -
and plenty of commercial ones.
Nov 25 '06 #5
Spam Catcher <sp**********@rogers.comwrote in
news:Xn**********************************@127.0.0. 1:
"reidarT" <re****@eivon.nowrote in news:#9Kd7M6DHHA.4396
@TK2MSFTNGP02.phx.gbl:
>How can I do the same in an aspx-page?

You'll need a .NET FTP component ... I'm sure there are some free ones -
and plenty of commercial ones.
OR you can use the command line FTP client - but if you're on a restricted
server, probably better to use a component:

http://www.codeproject.com/vb/net/FtpClient.asp

Actually .NET 2.0 might have FTP support... take a look at the
FTPWebRequest class.
Nov 25 '06 #6

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

Similar topics

11
by: Thomas Mlynarczyk | last post by:
Hello, I want to upload files via an HTML form and store them somewhere on my webspace. So far so good. I am just a bit concerned about security issues and traffic. My provider has set a file...
5
by: Thomas Brooks | last post by:
Hi there.... I have an ASP routine that I'm writing which updates an Access database with a user name, the file name, etc. all done through parameter processing and SQL functions. I do not...
10
by: Alphonse Giambrone | last post by:
I am trying to develop a web service to accept a file uploaded via http post from a vba (Access) application. Thanks to helpful links in a vb newsgroup and my previous work with WinInet api I was...
1
by: BW | last post by:
I am creating an upload/download function for an extranet site. Files will be uploaded to directory based upon the users login and associated project. The function works as long as I use "c:\Temp"...
4
by: jf li | last post by:
I have a Asp.net web application and a Asp.net Web service application. The Web application is using HtmlInputFile to get a 50M size of file selected by end user, read the data of this file and...
15
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
0
by: Raven Jones | last post by:
Heya all, I'm working on a web-based application (using ASP.NET and C# on .NET 1.1.4322, supporting only IE6 for Windows) that allows for file uploads. Screen real estate is at a premium, so I...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
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"...
5
by: camphor | last post by:
hi, I have found an upload script in hotscripts and have implemented it into the website, I followed the installation steps to 'give write permissions to php on the upload folder (which is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.