|
-
Nov 18th, 2004, 11:22 AM
#1
Thread Starter
Member
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?
-
Nov 18th, 2004, 01:07 PM
#2
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.
-
Nov 19th, 2004, 12:20 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|