Page 1 of 1

Problems with ASP installation

Posted: Tue Aug 18, 2009 12:59 pm
by cmullerp
good morning,
I am new to the application and I have serious problems installing, I have an ASP server, copy the required files and have permissions on the folders but does not allow me to copy the files, the aplet runs fine but the files do not load, the error message is this:

Select or drag and drop file to upload
--------------------------------------------------
Uploading : this.txt
(615.667 bytes)
Upload started ...Upload failed : java.net.ConnectException: Connection refused: connect
--------------------------------------------------


I'm running on localhost on my pc, I have URL parameters in this

document.writeln('<PARAM NAME=CODE VALUE="jfileupload.upload.client.MApplet.class">');
document.writeln('<PARAM NAME=CODEBASE VALUE="./">');
document.writeln('<PARAM NAME=ARCHIVE VALUE="lib/jfileupload.jar,lib/httpimpl.jar,lib/chttpclient.jar,lib/clogging.jar">');
document.writeln('<PARAM NAME=NAME VALUE="fileupload">');
document.writeln('<PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">');
document.writeln('<PARAM NAME="scriptable" VALUE="true">');
document.writeln('<PARAM NAME="url" VALUE="http://localhost:8080/upload">');
document.writeln('<PARAM NAME="paramfile" VALUE="uploadfile">');
document.writeln('<PARAM NAME="param1" VALUE="todo">');
document.writeln('<PARAM NAME="value1" VALUE="upload">');
document.writeln('<PARAM NAME="mode" VALUE="http">');



I created a folder called upload, I understand that there is copy files or not ..?

I have been really hard to run the process on my machine, I do not understand that I must be true or misconfigured. Please help me and could indicate how the procedure locally .. localhost.

thank you very much

Regards to all from Spain :D

Re: Problems with installation

Posted: Tue Aug 18, 2009 7:54 pm
by cmullerp
please... please..please... someone can help me.. please.. is just how to install over a ASP server.


thanks... : :roll:

Re: Problems with installation

Posted: Tue Aug 18, 2009 8:53 pm
by support
You need an ASP script to handle upload request and save files in a folder on your server. Using URL parameter such as <PARAM NAME="url" VALUE="http://localhost:8080/upload"> is not enough, it must be something like:
<PARAM NAME="url" VALUE="http://localhost:8080/upload.asp">
with upload.asp an ASP script such as:
http://www.jfileupload.com/products/too ... 0beta2.zip

You have a thread about this at:
viewtopic.php?f=5&t=235&p=939&hilit=asp#p963

Does it help ?

Re: Problems with installation

Posted: Tue Aug 18, 2009 11:16 pm
by cmullerp
hello, thanks for the reply, I did the above, follow the instructions but now I'm having another error in 14% of a text file size 615Bytes.

Uploading : this.txt
(615.667 bytes)
Upload started ...Upload failed : java.net.SocketException: Software caused connection abort: socket write error

it's end at 14%.
I also retry him, but ranges between 14% and 9% without a full charge

here is mi config file:

document.writeln('<PARAM NAME=CODE VALUE="jfileupload.upload.client.MApplet.class">');
document.writeln('<PARAM NAME=CODEBASE VALUE="./">');
document.writeln('<PARAM NAME=ARCHIVE VALUE="lib/jfileupload.jar,lib/httpimpl.jar,lib/chttpclient.jar,lib/clogging.jar">');
document.writeln('<PARAM NAME=NAME VALUE="fileupload">');
document.writeln('<PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">');
document.writeln('<PARAM NAME="scriptable" VALUE="true">');
document.writeln('<PARAM NAME="url" VALUE="http://localhost/miexample/process.asp">');
document.writeln('<PARAM NAME="paramfile" VALUE="uploadfile">');
document.writeln('<PARAM NAME="param1" VALUE="todo">');
document.writeln('<PARAM NAME="value1" VALUE="upload">');
document.writeln('<PARAM NAME="mode" VALUE="http">');
document.writeln('<PARAM NAME="retry" VALUE="5">');
document.writeln('<PARAM NAME="value6" VALUE="public-read">');

Folder has write permissions and the server handles perfectly ASP.


I searched in of java post which mentions something:
http://forums.sun.com/thread.jspa?threadID=582968

but I can not find solution to the problem.

the java console show this:

INFO: JFileUpload 2.4 Build FINAL.001
network: Conectando http://localhost/ejemplo/process.asp con proxy=DIRECT
18-08-2009 07:13:18 PM jfileupload.transfer.client.http.E C
INFO: Auto-detect proxy settings (ps): DIRECT
18-08-2009 07:13:18 PM jfileupload.transfer.client.http.E C
INFO: Auto-detect proxy settings : host = null
18-08-2009 07:13:18 PM jfileupload.transfer.client.http.E C
INFO: Auto-detect proxy settings : port = -1
18-08-2009 07:13:22 PM jfileupload.transfer.client.http.HTTPUploadTransfer C
INFO: Upload (POST) started : C:\Documents and Settings\user\Desktop\myfolder\this.txt
network: Conectando socket://localhost:80 con proxy=DIRECT
18-08-2009 07:13:22 PM jfileupload.transfer.client.http.HTTPUploadTransfer C
GRAVE: java.net.SocketException: Software caused connection abort: socket write error
18-08-2009 07:13:22 PM jfileupload.transfer.client.http.HTTPUploadTransfer B
INFO: Attempt 1/5

...then 2/5..3/5..4/5..and 5/5 unsuccessfully.

thanks support!!

Re: Problems with installation

Posted: Wed Aug 19, 2009 6:33 am
by support
Could you try the simple HTML upload form (uploadform.html) in a browser?
Does it work? If not then you have to investigate on server-side.

Re: Problems with installation

Posted: Wed Aug 19, 2009 12:41 pm
by cmullerp
yes, the simple HTML upload works without problems, gives me the following message:

Thank you for your upload
todo:upload
File Uploaded: image.bmp
Size: 2359350 bytes
Type: image/bmp

any idea that could be???

thanks in advance.

Re: Problems with ASP installation

Posted: Wed Aug 19, 2009 7:09 pm
by support
If it works with the simple upload form then it should work with the applet.
Are you sure about to URL for ASP upload script ?
Is there any way for me to test your URL?