Solved

Uploading Files To The Web Server!

Posted on 2004-09-19
10
244 Views
Last Modified: 2010-05-18
Hi,

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 environment in my pc (localhost).
With this, all my files will be uploaded to uploads folder in my c:

And I have change my path to

"/home/screen/public_html/uploads" in order to get my files from the upload
form to uploads folder inside public_html. (Linux Hosting Environment)

And then, I also have chmod the uploads folder to 0777. However when I try to run it, it doesn't upload my file into the server. The error command is java.lang.Exception: No such file or directory.

Is there anything else I left out? Any help is appreciated.

Thank you.
0
Comment
Question by:kheefatt
  • 4
  • 3
10 Comments
 
LVL 11

Expert Comment

by:sompol_kiatkamolchai
ID: 12099656
ummm..

Could you login to unix system and type this command?

$cd /home/screen/public_html/uploads

Does it be able to change to that directory?
0
 

Author Comment

by:kheefatt
ID: 12099707
I need to use telnet but I do not have access to the web server right now. However I'm asking for it access already. Will come back to u straight after I tried it!
0
 
LVL 35

Accepted Solution

by:
TimYates earned 125 total points
ID: 12100313
Is this the same problem as this: http://www.experts-exchange.com/Web/Web_Languages/JSP/Q_21128326.html ?  

I think you're going to have to get in touch with your hosting company, and get the proper path off them...

(and I'd triple check the jsp:setProperty to make sure it is right -- just to be safe) ;-)

Tim
0
 

Author Comment

by:kheefatt
ID: 12100470
Yes TimYates is the same problem. I've been trying with the path that I got from their support page.

And then tried it out. It didnt work actually but then I know it is because of the permission access problem. I've then chmod the uploads folder to 0777. But then it show me another error which is error command is java.lang.Exception: No such file or directory. I'm now trying on other alternatives like using jspsmart. But anyway, I still hope that this one works because this is the onli upload function that comes with a status bar!

Yeah I'm trying to get in touch with the hosting company. Thanks ya for helping me out!
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 35

Expert Comment

by:TimYates
ID: 12100521
> java.lang.Exception: No such file or directory

Are you writing straight into the folder (not inside other nested folders)?

Have you tried putting a trailing slash on the path?

<jsp:setProperty name="upBean" property="folderstore" value="/home/screen/public_html/uploads/"/>
0
 

Author Comment

by:kheefatt
ID: 12497268
I have left this question for a long time. Does anyone has a simple example on file upload? UploadBean doesnt seems to work!
0
 
LVL 35

Expert Comment

by:TimYates
ID: 12497303
Did you ever get in touch with the hosting company?
0
 
LVL 35

Expert Comment

by:TimYates
ID: 12497336
UploadBean does work, but you need to know the directory it can write into...
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
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.

747 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

10 Experts available now in Live!

Get 1:1 Help Now