File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes File not upload 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 » Frameworks » Struts
Bookmark "File not upload" Watch "File not upload" New topic

File not upload

Deepak Kumar pandey

Joined: Aug 31, 2010
Posts: 11

I wrote this code in action file of struts 2 for create directory and upload the file in created directories.

Code creating directories but not able save the file in directory.

How to save/upload the file in created directory.

I am also using

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

on jsp page.
David Newton

Joined: Sep 29, 2008
Posts: 12617

Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read. You can edit your post by using the button.
David Newton

Joined: Sep 29, 2008
Posts: 12617

Please TellTheDetails -- saying ItDoesntWorkIsUseless. Without knowing what it's actually doing it becomes *much* more difficult to help.
I agree. Here's the link:
subject: File not upload
Similar Threads
File Permissions
displaying the directory contents in the server
File upload problem in struts 2 (emoving file attachment)
Directory Create but not able to upload file in directory
problem in file downloading in struts 2.0