Results 1 to 3 of 3

Thread: fint the height of a file before the upload

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2004
    Posts
    54

    fint the height of a file before the upload

    I give user the option to upload a file
    to my site. The weight limit is 750KB.

    I want the JavaScript code check before the upload
    if the weight of the file is OK (small than 750KB).

    I found a way to check picture files, but when the user upload music Or movie file the check don't work.

    someone can give me idea how to do this?
    HELLO WORLD

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    It's not possible. JavaScript has no way of accessing the file size.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    You must check it after it has been submitted.

Posting Permissions

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



Click Here to Expand Forum to Full Width