Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting file size server side with javascript  RSS feed

 
Nicola Guy
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jsp which calls a java file that open a text file and reads in a line at a time and creates an array which is then used in the jsp.

However when opening the file I want to check the size of it first and if its to large display a message to the user stating this.

Any Ideas

Nicola
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cannot be done with Javascript. You'll need to check this in your server-side Java. Since this is independent of JSP, moving to the I/O forum.
[ January 24, 2005: Message edited by: Bear Bibeault ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!