#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    Ohio
    Posts
    2
    Rep Power
    0

    Javascript - Display Image File Properties


    I am making an image upload page and i have it set so the user can select an image from their hard drive, and then it will be displayed so they are sure its the right one first. I was wondering if I could use JavaScript to display how big the file is too. I know i can do this with PHP, but I want to show the user details without refreshing the page.

    Any help is appreciated.
  2. #2
  3. No Profile Picture
    Senior Citizen
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2001
    Location
    leftcoast
    Posts
    2,019
    Rep Power
    16
    JavaScript is very limited in its access to local files; nearly always better to handle these processes server-side. On the client, a lot depends on local security settings, which can't be relied on:

    http://www.faqts.com/knowledge_base/...d/1685/fid/177

IMN logo majestic logo threadwatch logo seochat tools logo