> Much better than letting the user upload a file and then saying "Over quota   
>  > file deleted".

You'd have to check the file on server side too, as javascript alone 
cant guarantee that the file wont be uploaded anyway. To check on the 
serverside the whole file has to be uploaded first before you can check 
its size.
Javascript should only be used for userfriendliness. For instance, if 
the files are big they will take a while to upload and then it might be 
a good idea to try and check it with javascript beforehand. If the files 
are small, you might as well do it all on the server side, as the user 
wont notice much difference anyway.

All of that being said, I belive your web site would have to be in the 
browsers "trusted zone" before you'd have access to read files with 
javascript anyway, so its probably not an option.
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to