Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Sep 2006
    Location
    India Mumbai
    Posts
    248
    Thanks
    13
    Thanked 1 Time in 1 Post

    Restrict Image Size while upload

    Hi all,
    i want to keep a check on the image file size while uploading. how can i do that in javascipt. or will i have to use AJAX.


    Thanks

  2. #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    19,059
    Thanks
    211
    Thanked 2,642 Times in 2,620 Posts
    Javascript cannot access (read from, write to) a file or the operating system.

  3. #3
    Regular Coder
    Join Date
    Sep 2006
    Location
    India Mumbai
    Posts
    248
    Thanks
    13
    Thanked 1 Time in 1 Post
    hi,
    that means i will have to call an AJAX to perform the validation


    Quote Originally Posted by Philip M View Post
    Javascript cannot access (read from, write to) a file or the operating system.
    thanks for your reply

  4. #4
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    How can you use Ajax? Last time I checked ou can not upload files.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  5. #5
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    19,059
    Thanks
    211
    Thanked 2,642 Times in 2,620 Posts

  6. #6
    Regular Coder
    Join Date
    Sep 2006
    Location
    India Mumbai
    Posts
    248
    Thanks
    13
    Thanked 1 Time in 1 Post
    hi Philip M
    Thanks a lot. at last i got a precise help on it.


 

Posting Permissions

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