How do you get or save a file from/to a client (button on web page) once they are authenticated? Th

  • Thread starter Thread starter jake
  • Start date Start date
J

jake

How do you get or save a file from/to a client (button on web page) once
they are authenticated? The client could be Mac, Linux or Windows. Can I do
it all with IIS and ASP.NET?
 
Thanks Steve,

This HTML server control, will give a text box and browse button, and it
will work on all platforms/web browsers (Mac, Linux, Windows)?

Also, how can I get this file to be uploaded automatically every so often /
days? Would the browser have to be run minimized after the initial file
info was taken and the 'button' pressed? Could the browser auto-open
minimized and send the file or something?
 
You will not be able to have the file reuploaded automatically. It can only
happen when the user manually performs an action (such as clicking the
button). Otherwise this would be a major security hole, as web sites could
upload user files at will.
 
Yes, the standard HTML file upload control *should* work in all browsers,
but you should (always) test your web sites with the platforms you choose to
support.

As for getting the upload to happen automatically, that's a whole different
can of worms involving plenty of security hoops. I know I wouldn't want you
downloading files off my computer whenever you feel like it. (Nothing
personal.)
You'll need a thick client of some kind to pull that off, such as a full
blown .NET Windows Forms application or a Windows Service. And obviously
those are not cross platform.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
 
So a Timer event would not work, if the browser stayed open? (I have to get
a file daily) using SSL somehow over http. I thought that would be the
easiest solution.
 
No, a Timer is a .NET Framework class (unless you are referring to something
else), which would be useless anyway, as the server can fire all the events
from a Timer it wants, there is no way to get anything over to the client
after the initial request, as HTTP is stateless.

And as I (and Steve) said previously, if there was anyway to do it, it would
be a major security hole.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top