File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ranch Office and the fly likes Upload file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "Upload file" Watch "Upload file" New topic

Upload file

Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 321
I am trying to upload files with several ext like .pdf. , docx, opt but it doesn´t allow me do it

In which format could I uploda the files?

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39530
Only images can be uploaded.

Ping & DNS - updated with new look and Ping home screen widget
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24166

We only allow images to be attached to posts (jpg, gif, png, etc.)

If you want to refer to other documents, you should upload them somewhere else, and link to them from here.

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: Upload file
Similar Threads
How can I upload a File using Struts
Displaying Progress bar
How to browse & upload the image using struts2?
getting session variable from multi part request