Bookmark Topic Watch Topic
  • New Topic

Reading file attributes from local file system

 
Ajju Chawla
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

How can I read and than display file attributes (size etc) and display in the web page when I select the file through <input type='file' >.

Thanks
AJ
 
Ishrayansh Nath
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Report post to moderator
give me your exact requirment?
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Report post to moderator
You can�t do this without uploading the file on the server.
Other alternatives are using Applet or using ActiveX.
 
Ajju Chawla
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Guys,

Thanx for uor reply's.
The exact requirement is that I've a web page(JSP) on which I need to upload multiple files. Now when a file is selected I need to display the size of the selected file. I've a check that the total size of all the selected files cannot exceed a certain limit.

The other option is that it can be done through ActiveX, but I dont know of any Java API which which can extract the uploaded files at the server end.

Rgds
AJ
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Report post to moderator
Originally posted by Ajju Chawla:
Hi Guys,
The other option is that it can be done through ActiveX, but I dont know of any Java API which which can extract the uploaded files at the server end.


..then use Applet to do this task.
 
Ajju Chawla
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

Thanks for all the suggestions.

Actually I've never worked on applets,
It would be gr8 if you can provide me --
Some kind of example code for applet or
some java api to access the Active X at server side.

Thanks
AJ
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Duplicate closed.
 
    Bookmark Topic Watch Topic
  • New Topic