Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

file upload directory

 
Rajani Deshpande
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two applications in my webapps directory. App_A and App_B
App_A has a form to enable file uploading thru struts. The upload works fine, but the problem is by default it gets uploaded to the App_B\webinf directory.
Is there a way to specify which directory it should upload to ?
 
dave sag
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rajani Deshpande:
I have two applications in my webapps directory. App_A and App_B
App_A has a form to enable file uploading thru struts. The upload works fine, but the problem is by default it gets uploaded to the App_B\webinf directory.
Is there a way to specify which directory it should upload to ?

I have a similar problem but it's a bit weirder.
i have my site accepting uploads okay but for some reason by default it puts the file in $TOMCAT_HOME/bin which is hardly where I would have expected it to end up.
how do i specify in a fairly general way where i expect the file to go? it needs to be general as I work on my own laptop, deploy to a staging server and then eventually deploy to a live server. i don't want to have to rebuild for each deployment, but expect the .war file to be transportable.
TIA - dave.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic