Link to home
Start Free TrialLog in
Avatar of kheefatt
kheefatt

asked on

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!

 
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

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 :-)
Avatar of kheefatt
kheefatt

ASKER

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.
you can type PWD from FTM
Sorry:

you can type "pwd" from FTP

it should be enough...
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!
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...
It still not uploading to the correct path..Anyone has anymore ideas?
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
http://www.mesrahosting.net/
Mesra Hosting in Malaysia
ASKER CERTIFIED SOLUTION
Avatar of labrynth82
labrynth82

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
okie thanks guys!