Download failed: file not found

Files and folders downloader add-on with resume support.

Download failed: file not found

Postby jaynorton » Mon Jul 02, 2012 6:28 pm

I have JFileUpload working with FTP, and I had JFileDownload working with FTP as well. But due to a bug in Java 7 and Windows 7, can no longer use FTP for JFileDownload. Having trouble getting the download to work with HTTP. Keep getting the file not found error message. Have played with tons of different parameter settings. Need some help. Here's my JS:

Code: Select all
<!--
var _info = navigator.userAgent;
var _ns = false;
var _ns6 = false;
var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
if (_info.indexOf("Opera") > 0) _ie = false;
var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0) || (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0) || (_info.indexOf("IRIX") > 0)));
var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5") >= 0));
if (_ie == true) {
  document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="480" HEIGHT="110" NAME="fileupload" codebase="http://java.sun.com/update/1.4.2/jinstall-1_4-windows-i586.cab#Version=1,4,0,0">');
}
else if (_ns == true && _ns6 == false) {
  // BEGIN: Update parameters below for NETSCAPE 3.x and 4.x support.
  document.write('<EMBED ');
  document.write('type="application/x-java-applet;version=1.4" ');
  document.write('CODE="jfileupload.upload.client.MApplet.class" ');
  document.write('JAVA_CODEBASE="./" ');
  document.write('ARCHIVE="lib/jfileupload.jar,lib/httpimpl.jar,lib/chttpclient.jar,lib/clogging.jar,lib/download.jar" ');
  document.write('NAME="fileupload" ');
  document.write('WIDTH="480" ');
  document.write('HEIGHT="110" ');
  document.write('url="http://shows.tourbusradio.com/process.php" ');
  document.write('item1="Sunset_1.jpg" ');
  document.write('param2="relativefilename" ');
  document.write('value2="true" ');
  document.write('param3="account" ');
  document.write('value3="showfiles" ');
  document.write('folderdepth="-1" ');
  document.write('encoding="ISO-8859-1" ');
  document.write('transferui="jfileupload.download.ui.DownloadTransferUI" ');
  document.write('resources="i18n_bar" ');
  document.write('transferuiresources="i18n_pane" ');
  document.write('mode="jfileupload.download.http.HTTPDownloadTransfer" ');
  document.write('scriptable=true ');
  document.write('regfile="license.oxw" ');
  document.write('transferuiparam1="regfile" ');
  document.write('transferuivalue1="download.oxw" ');
  document.writeln('pluginspage="http://java.sun.com/products/plugin/index.html#download"><NOEMBED>');
  // END
}
else {
  document.writeln('<APPLET CODE="jfileupload.upload.client.MApplet.class" JAVA_CODEBASE="./" ARCHIVE="lib/jfileupload.jar,lib/httpimpl.jar,lib/chttpclient.jar,lib/clogging.jar,lib/download.jar" WIDTH="480" HEIGHT="110" NAME="fileupload">');
}
// BEGIN: Update parameters below for INTERNET EXPLORER, FIREFOX, SAFARI, OPERA, MOZILLA, NETSCAPE 6+ support.
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,lib/download.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://shows.tourbusradio.com/process.php">');
document.writeln('<PARAM NAME="item1" VALUE="Sunset_1.jpg">');
document.writeln('<PARAM NAME="param2" VALUE="relativefilename">');
document.writeln('<PARAM NAME="value2" VALUE="true">');
document.writeln('<PARAM NAME="folderdepth" VALUE="-1">');
document.writeln('<PARAM NAME="param3" VALUE="account">');
document.writeln('<PARAM NAME="value3" VALUE="showfiles">');
document.writeln('<PARAM NAME="encoding" VALUE="ISO-8859-1">');
document.writeln('<PARAM NAME="transferui" VALUE="jfileupload.download.ui.DownloadTransferUI">');
document.writeln('<PARAM NAME="resources" VALUE="i18n_bar">');
document.writeln('<PARAM NAME="transferuiresources" VALUE="i18n_pane">');
document.writeln('<PARAM NAME="transferuiparam1" VALUE="regfile">');
document.writeln('<PARAM NAME="transferuivalue1" VALUE="download.oxw">');
document.writeln('<PARAM NAME="regfile" VALUE="license.oxw">');
document.writeln('<PARAM NAME="mode" VALUE="jfileupload.download.http.HTTPDownloadTransfer">');
// END
if (_ie == true) {
  document.writeln('</OBJECT>');
}
else if (_ns == true && _ns6 == false) {
  document.writeln('</NOEMBED></EMBED>');
}
else {
  document.writeln('</APPLET>');
}
//-->
jaynorton
 
Posts: 3
Joined: Tue Aug 31, 2010 2:33 pm

Re: Download failed: file not found

Postby support » Mon Jul 02, 2012 6:36 pm

Do you have explorer.php too?
It has to be referenced in explorer.php to allow download.
See at the bottom of readme.txt of JFileDownload
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm

Re: Download failed: file not found

Postby jaynorton » Mon Jul 02, 2012 6:42 pm

Yes. process.php is there (and working). Include line for explorer.php was added to process.php
jaynorton
 
Posts: 3
Joined: Tue Aug 31, 2010 2:33 pm

Same Problem Here

Postby matt@b10 » Tue Aug 07, 2012 8:37 pm

File not found...

Got this from java console (ie8, windows)
Code: Select all
Java Plug-in 10.4.1.255
Using JRE version 1.7.0_04-b22 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Microsoft Sam
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
[INFO] MApplet - JFileUpload 2.9 Build FINAL.001
[INFO] G - Auto-detect proxy settings (ps): DIRECT
[INFO] G - Auto-detect proxy settings : host = null
[INFO] G - Auto-detect proxy settings : port = -1
[INFO] Conf - TransferUI instantiated : jfileupload.download.ui.DownloadTransferUI
[INFO] DownloadTransferUI - JFileDownload 2.9 FINAL.001
[INFO] G - Auto-detect proxy settings (ps): DIRECT
[INFO] G - Auto-detect proxy settings : host = null
[INFO] G - Auto-detect proxy settings : port = -1
[INFO] A - Loading regFile : license.oxw
[INFO] A - Registered to :dreamtimeselfhelpwebsites.com
[INFO] HTTPDownloadTransfer - Download failed


I am also getting a (black) Unregistered option, though as you can see from the console output my license file was read and properly recognized.
matt@b10
 
Posts: 2
Joined: Tue Aug 07, 2012 8:24 pm

Re: Download failed: file not found

Postby support » Sun Aug 12, 2012 10:31 am

The file you want to donwload is "Sunset_1.jpg" correct?
Is this file in remote folder defined in $upload_dir at the top of process.php?
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm


Return to JFileDownload



cron

Sitemap | Privacy Statement | Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc.
in the U.S. and other countries. All other company and/or product names are the property of their respective owners.