commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anand Shankar <anand.al....@gmail.com>
Subject Re: [fileupload] Identify the type of document uploaded
Date Sat, 26 Mar 2011 19:38:04 GMT
Ya
You can use String Tokenizer to get the extension of the file  from file
name.





On Sat, Mar 26, 2011 at 2:15 PM, Nilesh Naik <nileshravinaik@gmail.com>wrote:

> Hello,
>
> Is there a way to identify/confirm that the uploaded document is of the
> type
> .doc or pdf? Becase based upon the type, I either need to use POI or Apache
> PDFBox for further processing.
>
> Thank you!
>



-- 
Thanks
Anand Shankar

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message