Solved

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

Posted on 2004-09-12
12
282 Views
Last Modified: 2010-04-01
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!

 
0
Comment
Question by:kheefatt
  • 5
  • 5
  • 2
12 Comments
 
LVL 35

Expert Comment

by:TimYates
ID: 12042020
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
 

Author Comment

by:kheefatt
ID: 12042117
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
 
LVL 35

Expert Comment

by:TimYates
ID: 12042149
you can type PWD from FTM
0
 
LVL 35

Expert Comment

by:TimYates
ID: 12042150
Sorry:

you can type "pwd" from FTP

it should be enough...
0
 

Author Comment

by:kheefatt
ID: 12042547
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
 
LVL 35

Expert Comment

by:TimYates
ID: 12042563
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:kheefatt
ID: 12052282
It still not uploading to the correct path..Anyone has anymore ideas?
0
 

Expert Comment

by:labrynth82
ID: 12052294
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
 

Author Comment

by:kheefatt
ID: 12052342
http://www.mesrahosting.net/
Mesra Hosting in Malaysia
0
 

Accepted Solution

by:
labrynth82 earned 100 total points
ID: 12052429
The paths are all listed there
http://www.mesrahosting.net/support/linuxhostingfaq.shtml

Have a look!
0
 
LVL 35

Assisted Solution

by:TimYates
TimYates earned 50 total points
ID: 12052501
He's right:

----------

 Domain paths
using example if your domain was mesra.net

    * Main dir: /home/mesra/public_html/
0
 

Author Comment

by:kheefatt
ID: 12052554
okie thanks guys!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
maven scope 1 120
spring AOP 6 71
countXY challenge 28 117
struts spring hibernate example 12 86
Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now