Jump to content

Getting a file from a mapped network drive


VTS

Recommended Posts

Well what I am trying to do is go across my network and copy a file from a mapped drive and put it on the c: drive of my server.  I was told that php could not do that and I tried it with javascript, but it doesnt work right.  The problem I ran into with JS was that the program that moves this file is located on a server.  When a client runs this program it just puts the file on the client's computer and I need it to be placed on the C: of the server.  Does anyone have any ideas for what other languages could do this or where else I can look to get help with this?  If I need to be a little more clear just let me know.

 

thanks in advance

VTS

Do you want to move a file like this:

 

mapped network drive accessible from client => C: of server

 

This will need both client and server cooperation.  PHP runs on the server only, and javascript runs on the client only.  To get the file to the server, you would need javascript to submit the file to php, which would then write it to the server.  I'm not sure about the details unfortunately.

 

The easiest way is to use a standard php file upload form, and have the user select which file they want to upload.

Thanks for the info!  I actually just got this resolved today.  They decided that it is possible to put the file on the c: of the server to begin with so now I do not have to worry about this.  Ill have to try out what you suggested that way I am able to do that if something like this comes up in the future.  thanks again!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.