Specifics on Parameters

Upload core product.
Post Reply
TapeGun007
Posts: 3
Joined: Tue Jan 06, 2009 1:39 am

Specifics on Parameters

Post by TapeGun007 »

Code: Select all

document.writeln('<PARAM NAME="whitelist" VALUE="*.pdf, *.doc, *.txt">');
This let's me FTP the .pdf files, but not the .doc or .txt. What am I doing wrong?

Code: Select all

document.writeln('<PARAM NAME="resources" VALUE="i18n">');
I have a file called i18n in the /lib folder, I also have a file called i18n.properties in the /lib folder, yet I get the error:
java.util.MissingResourceException: Can't find bundle for base name i18n, locale en_US

What am I doing wrong?

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Specifics on Parameters

Post by support »

For whitelist parameter, remove all extra space characters.
i18n.properties must be in the same folder as HTML/JavaScript files, NOT under lib/ folder.

Try again and let me know if it helps.

TapeGun007
Posts: 3
Joined: Tue Jan 06, 2009 1:39 am

Re: Specifics on Parameters

Post by TapeGun007 »

Ok, first problem fixed, taking out the spaces worked. Thank you.

Now for the 2nd problem. I copied the i18n.properties file to the same folder as the .js file.

Code: Select all

// 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/ftpimpl.jar,lib/cnet.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="resources" VALUE="i18n">');
document.writeln('<PARAM NAME="mode" VALUE="ftp">');
// END
Here is the applet error I get:
Jan 12, 2009 12:03:21 PM jfileupload.upload.client.MApplet <init>
INFO: JFileUpload 2.2 Build FINAL.001
java.util.MissingResourceException: Can't find bundle for base name i18n, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
at java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.util.ResourceBundle.getBundle(Unknown Source)
at jfileupload.transfer.client.util.E.A(Unknown Source)
at jfileupload.transfer.client.util.Conf.F(Unknown Source)
at jfileupload.transfer.client.util.Conf.B(Unknown Source)
at jfileupload.upload.client.MApplet.init(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.util.MissingResourceException: Can't find bundle for base name i18n, locale en_US
Thanks,
-Ken

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Specifics on Parameters

Post by support »

Are you able to access i18n.properties directly in browser ?
http://server.com/something/i18n.properties

If you get a 404 error then it means that your web server doesn't serve .properties files. It's a common problem under Microsoft IIS web server. You just need to add ".properties" as "text/plain" in mime-types section.

Does it help ?

Post Reply