Upload Problems :- Assigning to the correct path in Linux/ Hosting Domain

Hi experts,

I'm using the uploadbean servlets downloaded from http://www.javazoom.net/jzservlets/uploadbean/uploadbean.html 

In the upload form, I'm able to direct my upload files to the folder that I wanted by modifying the path in this line :  <jsp:setProperty name="upBean" property="folderstore" value="c:/uploads"/>


I have no problem doing this under Windows. With this, all my files will be uploaded to uploads folder in my c:

However, I'm hosting my application on a Linux Server. The path should be different in linux. When I enter the ftp server under my domain, there are 5 folders in there. It is mail, public_ftp, public_html, tmp and www. I think uploaded files should go into public_html or www folder.

So in Linux, how to assign the path value so that it will goto public_html/www? Please help and thanks!

 
kheefattAsked:
Who is Participating?
 
labrynth82Connect With a Mentor Commented:
The paths are all listed there
http://www.mesrahosting.net/support/linuxhostingfaq.shtml

Have a look!
0
 
TimYatesCommented:
if you CD to the DIR you want the files to go into, and type

pwd

then that value it prints out is the directory path you need :-)
0
 
kheefattAuthor Commented:
I do not have the access to the hosting company. So do I need to ask the technical person there to type 'pwd' for me there? Is there anyway where I know the path from here. I have the IP.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
TimYatesCommented:
you can type PWD from FTM
0
 
TimYatesCommented:
Sorry:

you can type "pwd" from FTP

it should be enough...
0
 
kheefattAuthor Commented:
it shows the path is \public_html. So I guess I'll replace it and test it out. If it works, really thanks to u alot!
0
 
TimYatesCommented:
If it doesn't work, you may need to contact your hosting company, and find out what the actual path should be...

Hopefully though, that will work...
0
 
kheefattAuthor Commented:
It still not uploading to the correct path..Anyone has anymore ideas?
0
 
labrynth82Commented:
Can I have the name of your hosting company? Or if possible the link to their website! Maybe I can find some information there for you
0
 
kheefattAuthor Commented:
http://www.mesrahosting.net/
Mesra Hosting in Malaysia
0
 
TimYatesConnect With a Mentor Commented:
He's right:

----------

 Domain paths
using example if your domain was mesra.net

    * Main dir: /home/mesra/public_html/
0
 
kheefattAuthor Commented:
okie thanks guys!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.