Probably a dead easy one, this: I wanted to build a function to automatically get a load of files from a cd or directory on the client, and upload them to the server.
I'm thinking that this would contravene standards of internet security (and probably taste and decency as well). Am I right it saying it can't be done, captin?
You are correct. Among the standard security concerns, what if the user is going through a proxy server? How would even know the IP address? What about operating system? Surely the directory would be named differently, and even narrowed to one operating system, the path could still be different. No, unless it's coming from one static client (which you have access to), and is always going to be in a predefined destination, you really can't do this.
How about if its a didicated ip address, and the filename & extension client side are provided to the server?
I'm not sure I follow....
Like an upload? They could do that. But it wouldn't be automatic. Automated, if it was coming from a URL or FTP, sure.
When you say client, I'm assuming you meant someone just browsing your website.
Yeah, except that its a secure area used within the company, so we've got dedicated IP and no concerns about any shady dealings.
I wanted the site to be able to read files on the cd and tell the user if the files are the ones they need for a particular task. Then to copy them from the disc to the site.
Well, with a dedicated IP on the client, I'd say you probably could do this, as long as you have access to the box.