Connecting Tech Pros Worldwide Forums | Help | Site Map

Trying to upload files programmaticly

mp33487@hotmail.com
Guest
 
Posts: n/a
#1: Jun 27 '08
I'm trying to upload/download files programmaticly to a records
management system. I have it working fine on my dev machine using
vb.net code-behind pages but when I place it on the server when it
goes to upload files it (datatable of file paths and data stored in a
session var) it errors because the code can't find the files. It
seems to be trying to read the file from the server drive not from the
client machine. My code is meant to read the file into a memory
stream then feed it to a web service call that stores it into the DB.
Any ideas?

If there is a utlility that I can buy to programmaticly upload/
download files I'd do that well. I need to do both actions without
user interaction and coordinate that with my web services to manage
the files and data.

Thanks in advance.

Mike
mp33487@hotmail.com

Mark Rae [MVP]
Guest
 
Posts: n/a
#2: Jun 27 '08

re: Trying to upload files programmaticly


<mp33487@hotmail.comwrote in message
news:468ae6c1-7aa2-43c2-8615-bc633241e660@l64g2000hse.googlegroups.com...
Quote:
I'm trying to upload/download files programmaticly to a records
management system. I have it working fine on my dev machine using
vb.net code-behind pages but when I place it on the server when it
goes to upload files it (datatable of file paths and data stored in a
session var) it errors because the code can't find the files. It
seems to be trying to read the file from the server drive not from the
client machine.
Yes, that's exactly what's happening. On your development machine, server
and client are actually the same physical machine...
Quote:
If there is a utlility that I can buy to programmaticly upload/
download files I'd do that well. I need to do both actions without
user interaction and coordinate that with my web services to manage
the files and data.
You have (almost) no chance whatsoever of doing this, for fairly obvious
security reasons...

Imagine a public website which could upload and download files to and from
client browsers without user interaction - you'd be surfing away quite
happily while the site was freely downloading malware and uploading your
accounts file, password list etc...

All modern browsers are designed specifically to prevent this sort of
functionality - don't even bother trying...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Mark
Guest
 
Posts: n/a
#3: Jun 27 '08

re: Trying to upload files programmaticly



I agree it does sound like a security nightmare - but would it not be
possible to 'share' a drive on each PC with the server. Then the server
could then just reference the shared file area, eg.
\\mypc\mysharedfiles\myfile.doc

Just a thought,

Mark

*** Sent via Developersdex http://www.developersdex.com ***
Mark Rae [MVP]
Guest
 
Posts: n/a
#4: Jun 27 '08

re: Trying to upload files programmaticly


"Mark" <anonymous@devdex.comwrote in message
news:%23$ua5FcuIHA.4736@TK2MSFTNGP04.phx.gbl...
Quote:
I agree it does sound like a security nightmare - but would it not be
possible to 'share' a drive on each PC with the server. Then the server
could then just reference the shared file area, eg.
\\mypc\mysharedfiles\myfile.doc
Ah, but that's not the same thing at all...

At that moment, the browser doesn't come into it...

It is the browser, not ASP.NET per se, which blocks unassisted downloads and
uploads

Take the browser out of the equation, and anything is possible. What your
suggesting is hardly any different from network utilities which deploy
patches and service packs to workstations.


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Closed Thread