upload with authentication

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vini rally
    New Member
    • May 2009
    • 1

    upload with authentication

    I am using ActiveXobject to copy JPG file from client machine to server machine.
    Following is the code snippet
    Code:
    var objFSO = new ActiveXObject("Scripting.FileSystemObject");
    
        if (objFSO.FileExists(data.value)) {
        	var filestr = objFSO.GetFile("C:\\temp\\tmp.jpg");
        	 var temp = "\\\\serverip\\Share\\tmp.jpg";   	
        	filestr.Copy(temp);
    	
        }
    i need to add server credententials to copy jpg file from client to server
    Is there any way to add authentication for server in above scenerio?
    Last edited by jhardman; May 26 '09, 08:23 PM. Reason: added code tags
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    In classic ASP, authentication has to be programmed manually, that means setting up a form and validating the input. Or if you are just checking that the client is on a particular network layer (for an intranet, for example) then you just need to check the request.serverv ariables for the sender IP. Do either of these options sound like what you want to know?

    Jared

    Comment

    • Nicodemas
      Recognized Expert New Member
      • Nov 2007
      • 164

      #3
      Originally posted by vini rally
      i need to add server credententials to copy jpg file from client to server
      Is there any way to add authentication for server in above scenerio?
      Can you explain "server credentials" and "authentication " in this case?

      Are you trying to ensure the person doing the uploading is on a particular Active Directory domain, or user group?

      Is the "authentication " arbitrary, e.g. an assigned username/password not controlled by the server?

      Are you trying to ensure the user is on a particular network (IP submask)?

      Comment

      Working...