• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to upload files to windows network shared drive

 
rahulJ james
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am building an application with struts 2 FW. I wanted to have a plage where the user should be able to upload a word doc to the network drive. Any suggestions
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take the time to choose the correct forum for your posts. This forum is for questions on HTML and JavaScript. For more information, please read this.

This post has been moved to a more appropriate forum.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's "FW"?

Just upload the file normally then copy it. What specific problem are you having?
 
rahulJ james
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FW - framework
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're doing this on a non-Windows platform then you'll need to use a library like jCIFS that understands SMB so it can access Windows shared drives. But the jCIFS API is just about identical to the java.io classes (in particular, File and File[In|Out]putStream) so you should have little problem converting your code.
 
rahulJ james
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.. I am building in the windows and later I will be moving this application to the unix environment. Will I be having any issues with this.

I connect to the windows shared drive through the File.io and I am able to create folders. My concern is how to upload the file to the desired location

Advise
 
Paul Clapham
Sheriff
Pie
Posts: 20729
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
rahulJ james wrote:Thanks.. I am building in the windows and later I will be moving this application to the unix environment. Will I be having any issues with this.
If you're asking about jCIFS, it's pure Java. I use it to move files from an IBM System i (a.k.a. iSeries a.k.a. AS/400) to Windows machines. So it should work on Unix boxes too.
I connect to the windows shared drive through the File.io and I am able to create folders. My concern is how to upload the file to the desired location
I know very little about Struts but from the questions I've seen here it looks to me like file uploading is built into it somehow.
 
rahulJ james
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it is pure java.. So am I going in the right direction by using file.io or Somethingelse I have to look into..
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you somehow missed my previous post...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic