Can JS do this

Discussion in 'JavaScript' started by poyor7, Jul 6, 2006.

  1. #1
    Hi...

    I would like to know if JS can do this :

    Scenario A:

    A user upload file from server A(testing server) to server B(life server).The upload scripts PHP,is it possible to use javascript to directly point to one directory i mean to the folder where the file is and strict the user from browsing other folder ?

    If is possible...please give me some hints on how to do it..

    Thanks
    poyor7
     
    poyor7, Jul 6, 2006 IP
  2. acplus

    acplus Guest

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I presume you mean whilst browsing the client computer?

    I don't think you'll be able to restrict this using any types of server-side programming languages or Javascript. If you were able to do this then this would be a security risk in the browser software.

    You may have to create your own bespoke program in a programming language like C++ or Visual Basic.

    Regards,
    acplus
     
    acplus, Jul 7, 2006 IP