Hi all,
I need a piece of code to upload files from a personal PC (my portal users) to my webportal.
I dit tried to use this code:
File.Copy(strUploadFileOrg, strUploadFileDest)
but testing shows that it only works on my local development webportal, i.e. when the directory structure is the same for the sending (strUploadFileOrg) and receiving (strUploadFileDest) environment. If I want to send a file to my portal that is located at my hosting porvider, but this doesn't work, because the hosting directory don't match mine, let alone the directories of my users who must be able to upload their files.
I dit try to implement the "standard" upload control, but I don't want the user to select the destinaton directory on the portal side; the directory structure is part of the solution, and therefore can't be "freely" exposed to the user; too many change that errors will occur. So I need a routine (JAVA?) that can send a locally selected file to my pre-defined directory on the hosting web-server.
Can somebody help me with a hint or a piece of code to get this job done properly, please?
Jos