Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Reading file attributes from local file system

 
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
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Report post to moderator
give me your exact requirment?
 
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
 
Sheriff
Posts: 67265
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Duplicate closed.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!