Re: [fileupload] Identify the type of document uploaded
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 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
[fileupload] Identify the type of document uploaded
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!