File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 File Upload

 
Jibin Najeeb
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I Upload file without using enctype

<s:form method="post" enctype="multipart/form-data" theme="simple">
</s:form>

I want to upload file without using those enctype in forms. IS IT POSSIBLE?
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. Files cannot be encoded with the default MIME encoding, application/x-www-form-urlencoded
 
Nam Ha Minh
Ranch Hand
Posts: 502
Eclipse IDE Firefox Browser Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jibin Najeeb wrote:Can I Upload file without using enctype

<s:form method="post" enctype="multipart/form-data" theme="simple">
</s:form>

I want to upload file without using those enctype in forms. IS IT POSSIBLE?


Of course it's impossible as told by Joe, unless you are using non-form based file upload technique.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic