dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: read file from usb drive

  1. #1
    Join Date
    Nov 2008
    Posts
    28

    read file from usb drive

    is that possible to read a file from usb drive, that to be used validate access to gain the authority. and if so...how?

    thanks in advance

  2. #2
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,443
    Ajax only works on server files, AFAIK.

    You can put an external JS file on the USB drive
    so long as you reference it in the same directory as the HTML.

    JS is not a very good language for projects with security issues.
    All scripts (with passwords, authorization, etc.) can be viewed in a browser.

  3. #3
    Join Date
    Jul 2008
    Location
    urbana, il
    Posts
    2,787
    you can use <input type='file' multiple /> to load files from any drive.
    for IE browsers, you'll have to upload it temporarily to a server and ajax the response back to javascript. modern browsers can read the file data directly from the input without using the network...

  4. #4
    Join Date
    Nov 2008
    Posts
    28
    thanks for help, i might get a idea, not sure yet, i will be back asap i finger it out

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles