aspose file tools*
The moose likes Struts and the fly likes Struts 2 File Upload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 File Upload" Watch "Struts 2 File Upload" New topic
Author

Struts 2 File Upload

Jibin Najeeb
Greenhorn

Joined: Nov 27, 2012
Posts: 6
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

Joined: Oct 29, 2001
Posts: 8927
    
    9

No. Files cannot be encoded with the default MIME encoding, application/x-www-form-urlencoded


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 498

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.


PM Me If You Want to get Urgent Help on Java Programming
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 File Upload