This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Upload file with checking of size on the client side

 
Vrushank Joshi
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hii,
I want to upload file using jsp to the server. But before upload file i want to check the file size on the client side and check if the file size is more than the allocated space to the perticular user than shows some message on the client browser.

Thank u,
Regards,
Vrushank
[ October 24, 2004: Message edited by: Bear Bibeault ]
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since JSP is a server-side technology, and you want a client-side solution -- this really isn't the place any answers. Looks like you're needing a JavaScript solution or something similar. (JavaScript's security paradigm won't just let you go peeking around clients' hard drives though).
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, I don't think it can be done at all. But certainly there's no JSP/Servlet solution.
 
Vrushank Joshi
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank u Mr. Nathaniel Stoddard & Mr. Bear Bibeault for ur urgent reply...
But i have solved that problem. But i had check the file size on the server.
But i really need to check the file size on the client side.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its very glad to here that you have solved it on server-side. But pal I dont think there is any method to check this on client-end.
 
Nitin Singh
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This code works in IE.
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, good ol' Internet Explorer -- violating civil rights, one browser at a time.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!