This week's giveaway is in the Groovy forum.
We're giving away four copies of Groovy Fundamentals video training course and have Ken Kousen on-line!
See this thread for details.
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 Groovy Fundamentals video training course this week in the Groovy 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: 9102
    
    9

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


[How To Ask Questions On JavaRanch]
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 502

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