Path

ez.no / developer / contribs / applications / multiplefileupload


MultipleFileUpload

Author Version Downloads Compatible with
Patrizio Bekerle 0.3 2190 3.6.2
With this eZPublish (3.3+) extension you can upload multiple files (only images at the moment) to a content object. This is essential for imagegalleries in my opinion.

This is a true eZPublish 3 extension, which doesn't affect the eZPublish kernel/core, so you don't have to fear the next core update.

Description

I use modified and fixed code from Sergiy Pushchin's
"Image batch uploadscript from local harddrive" script to save the images.

To upload the files I use the JUpload Java Applet (http://jupload.biz/),
which is free for privat usage. Please visit their webpage for commercial version prices.
It provides multiple file selection and an image preview.

You will find some screenshots here:
http://www.bekerle.com/article/articleview/19/1/2/

The module will use the first characters of the filenames as node priority if they are numbers.
You can separate the priority and the imagename with whitespaces and hyphens if you want. You can use a bulkrename tool to do this.
Example: "003 - my little image.gif" will have priority 3 and the imagename will be "my little image"


Languages
---------

English and a German translation are included at the moment.


Installation
------------

Just copy my extension to your extension folder.
Don't forget to check "multiplefileupload" in Setup/Extension on the eZP admin page.


You will need
-------------

+ A java enabled webbrowser


Usage
-----

Just browse to
http://<yourez3webpage>/<yoursitepath>/multiplefileupload/select
or
http://<yourez3webpage>/multiplefileupload/select
if you use the virtual host setting.
Then follow the instructions ;-)

Discussion
----------

Please post your wishes and other conversation here:
http://www.ez.no/community/forum/...tiplefileupload_extension_discussion


have fun, Patrizio
http://www.bekerle.com

Screenshot

Changelog

# 0.3
- Fix for upload problems with windows servers

# 0.2.9
- Fixed some "strange behaviour" of eZP with $Module->redirectTo(...)
- Added the GNU license file ;-)

# 0.2.8
- Added an INI file multiplefileupload.ini, so you can set you image class id and the
number of the "name" and "image" attributes (if you changed your image class)
- Updated the the JUpload applet to the latest version
- Added a new template für the upload page which uses no JS (didn't work in Firefox).
This template will be used by default now, if you liked the old one you can set
UseFirefoxTemplate=false in you multiplefileupload.ini.append

# 0.2.7
- Added fixes for eZPublish 3.5.1
- By public demand the "Caption" field will not be set any more


# 0.2.6
- Fixed the "related object" problem

# 0.2.5
- Added a small fix for eZPublish 3.4

# 0.2.4
- The eZ 3.2 legacy files will be cleared automatically after upload,
so the will not lay around when you delete your images in ez3.3
(Do not use this version if you have eZ 3.2!)

# 0.2.3
- Added a small bugfix for multiwebpage eZPublish distributions
- The upload page in the upload applet has its own pagelayout.tpl now
- The module will use the first characters of the filenames as node priority if they are numbers now

# 0.2.2
- Now I set the section id of the parent object for the uploaded files.

# 0.2.1
- The images are not draft after upload, they are published now.
Any complains about this change?

# 0.2
- BugFix: Fixed a problem with the browserCookie java parameter
- BugFix: Added "ezroot" to the java applets (strange, I forgot about that)

# 0.1
- initial release

Comments

sorted

Not to worry, I've cracked it.

Thanks Claudia, once again, spot on.

CLass not loading

Claudia,

What is the full path?

Thanks

try this for class JUpload.startup not found

I solved it by changing the archive parameter of the applets in the upload.tpl and the uploads_firefox.tpl to a full path (starting with http://).
Additionally I had to add the .jar file extension to my htaccess rules.
Now it loads just fine.

Look at your error.log

I've did the following:
1) Looked at my apache webserver error.log
2) There was some access errors with full path
3) I've unpacked! my jupload.jar to that path
4) It loaded! But still wasn't work for me, becouse of my specific admin port config

P.S. Consider using ezp in webdav mode. It worth to do.

Still wont load

Still same issue.

HELP!!

Wont Load

Same issue as below

Java Plug-in 1.5.0_06


Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM


User home directory = C:\Documents and Settings\smithd


 

 

----------------------------------------------------


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


p:  reload proxy configuration


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>


----------------------------------------------------


 

load: class JUpload.startup not found.


java.lang.ClassNotFoundException: JUpload.startup


        at sun.applet.AppletClassLoader.findClass(Unknown Source)


        at java.lang.ClassLoader.loadClass(Unknown Source)


        at sun.applet.AppletClassLoader.loadClass(Unknown Source)


        at java.lang.ClassLoader.loadClass(Unknown Source)


        at sun.applet.AppletClassLoader.loadCode(Unknown Source)


        at sun.applet.AppletPanel.createApplet(Unknown Source)


        at sun.plugin.AppletViewer.createApplet(Unknown Source)


        at sun.applet.AppletPanel.runLoader(Unknown Source)


        at sun.applet.AppletPanel.run(Unknown Source)


        at java.lang.Thread.run(Unknown Source)


Caused by: java.io.IOException: open HTTP connection failed.


        at sun.applet.AppletClassLoader.getBytes(Unknown Source)


        at sun.applet.AppletClassLoader.access$100(Unknown Source)


        at sun.applet.AppletClassLoader$1.run(Unknown Source)


        at java.security.AccessController.doPrivileged(Native Method)


        ... 10 more


load: class JUploadPlugin_ImagePreview not found.


java.lang.ClassNotFoundException: JUploadPlugin_ImagePreview


        at sun.applet.AppletClassLoader.findClass(Unknown Source)


        at java.lang.ClassLoader.loadClass(Unknown Source)


        at sun.applet.AppletClassLoader.loadClass(Unknown Source)


        at java.lang.ClassLoader.loadClass(Unknown Source)


        at sun.applet.AppletClassLoader.loadCode(Unknown Source)


        at sun.applet.AppletPanel.createApplet(Unknown Source)


        at sun.plugin.AppletViewer.createApplet(Unknown Source)


        at sun.applet.AppletPanel.runLoader(Unknown Source)


        at sun.applet.AppletPanel.run(Unknown Source)


        at java.lang.Thread.run(Unknown Source)


Caused by: java.io.IOException: open HTTP connection failed.


        at sun.applet.AppletClassLoader.getBytes(Unknown Source)


        at sun.applet.AppletClassLoader.access$100(Unknown Source)


        at sun.applet.AppletClassLoader$1.run(Unknown Source)


        at java.security.AccessController.doPrivileged(Native Method)


        ... 10 more




Any ideas

not working.

the applets wont load:

load: class JUpload.startup not found.
java.lang.ClassNotFoundException: JUpload.startup
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
load: class JUploadPlugin_ImagePreview not found.
java.lang.ClassNotFoundException: JUploadPlugin_ImagePreview
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more

unable to find java class

Hi,


Install 3.6.4. with window installer.


charger : classe JUploadPlugin_ImagePreview introuvable.
java.lang.ClassNotFoundException: JUploadPlugin_ImagePreview
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
charger : classe JUpload.startup introuvable.
java.lang.ClassNotFoundException: JUpload.startup
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more

I feel frustrated ;)

Laurent

mac?

anybody has this running on a mac?
somehow the java applet doesn't get initialized..
oops, just noticed that it doesn't run my windows box either. post obsolete then.
is it because i'm using 3.67?? it always says applet ... not inited in the status bar..

Russian translation

Where can I send your my russian ts file for your extension?

Same problem as Fabio

Same problem as Fabio : there seem to be a problem under Windows with the temp folder ...

Lex

Strange upload behaviour

Hello and thanks in advice

I got 2 installation with multiplefileupload extension
The first runs on linux, all fine.

The second runs on windows, with the ez bundle (ez+apache+php+mysql) 3.6.1. with virtual host and and multiplefileupload extension.

On windows i'm experiencing really strange behaviour from multiplefileupload.

First of all i've modified the ezpublish.con under apache conf adding e rewrite rule, so apache server the folder containing applet directly.
I've modified .htaccess file so the jar extension is managed by apache.

After that i try to upload file, i can choose destination and the applet start correctly.(I mean that in the java console i don't see any error)

All seem fine, but after the upload process completes
i can't see any of the uploaded images on server.
The Image coontent objects are created but without any image attached.

Does anyone have any idea?

Problems with 3.6.1

Hi again!

I get this error when trying to use the 0.2.9 with ezp 3.6.1:


Java Plug-in 1.5.0_04
Using JRE version 1.5.0_04 Java HotSpot(TM) Client VM

load: class JUpload.startup not found.
java.lang.ClassNotFoundException: JUpload.startup
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more


Any ideas what this means?

Felix

Nice work

Thanks

Sorry you are right

Oups - I forgot the .append.php in my siteaccess .ini

Thanks for the quick answer.

Martin

Re: Remove multiplefileupload.ini in extension for the one under siteaccess to have effect

It should be possible to override settings in your siteaccess directory with an multiplefileupload.ini.append.php.

-- Patrizio

Remove multiplefileupload.ini in extension for the one under siteaccess to have effect

The multiplefileupload.ini under extension should be remove for the one under siteaccess to have effect ?

Why don't you read the 1st one first (extension) then the 2nd one if its there (siteaccess) ?

Thank you

Re: Suggestions: changelog / development forum thread

Thanks for your comments and I think you're right ;-)

-- Patrizio

Suggestions: changelog / development forum thread

Patrizio,

Congratulations for your great extension.
I would suggest reversing the order of your changelog (to asc) so that the latest description of changes for the latest released version are listed at the top of your changelog for quick reference / those who look further into the change log can take a look from latest to oldest changelog entries.

I would also highly suggest you open up a forum thread for multiplefileupload development and move most of your comment conversations into a forum thread advertised on the multiplefileupload project / contrib page.

This keeps the comments from becoming a forum and really puts the conversation into a more appropriate medium for longer discussions.

cheers,
//kracker

Re: This is great - The best EZP module !

> This is great - The best EZP module !

*lol*

> Super thanks. Great work.

I'm glad you like it ;-)

>
> Last question : is it possible to make a ezp/settings/siteaccess/mysite/multiplefileupload.ini that will override the one under ezp/extension/../multiplefileupload.ini ?

sure it is. just create a multiplefileupload.ini.append in your siteaccess directory

>
> This would allow to have a per-site setting.

right *g*

>
> Where can i send you a fre-FR translation ?

nice!

Since neither of us want to post an email adress, please contact me here:
http://www.bekerle.com/contact/

-- Patrizio

log in or create a user account to comment.

Contribution info (stable)

Download