MultipleFileUpload extension discussion

Author Message

Patrizio Bekerle

Sunday 19 March 2006 2:51:50 pm

Hm, never tested different ports. But the JUpload docu says "HTTP and HTTPS are supported protocols, as well as different ports.". Strange...
http://www.jupload.biz/manual/appendix.html#appendix_config

@webdav: ouch, the "php does not like utf8" problem?

Eivind Marienborg

Tuesday 28 March 2006 1:13:19 am

I've used this extension with success on earlier eZ systems, but on my latest install it just won't work. I'm running eZ 3.6.0 on Apache/1.3.33, PHP/4.3.10.

Accessing the select-page works fine, but on the upload-page the java just won't load. I did some testing, and found out that the rewriterules that's distributed with 3.6.0 isn't compatible with the multiplefileupload directory structure:

This is default:
RewriteRule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]

I added this rule:
RewriteRule ^/extension/[^/]+/design/(stylesheets|images|applets|javascripts?)/.* - [L]

The default rule demands a directory between /design/ and /javascripts, /images etc (e.g. /design/<b>base</b>/applets/), but this isn't the case in the multiplefileupload-extension. It doesn't include the applets-dir either, so I added that too.

Doing this, I can now access the files from my webbrowser (mysite.com/extension/multiplefileupload/design/applets/jupload.jar).

But the Java still won't load. Trying to open the files in Java 2 Platform, I get the following error message: "Failed to load Main-Class manifest attribute from ../jupload.jar".

In the upload window, the following is displayed in the Java console:

java.lang.ClassFormatError: Incompatible magic value 171712813 in class file JUploadPlugin_FolderChooser
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	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)

This is repeated for several class files:

java.lang.ClassFormatError: Incompatible magic value 171712813 in class file JUploadPlugin_FiletypeChooser
java.lang.ClassFormatError: Incompatible magic value 171712813 in class file JUploadPlugin_SimpleFileChooser
java.lang.ClassFormatError: Incompatible magic value 171712813 in class file JUploadPlugin_ImagePreview
java.lang.ClassFormatError: Incompatible magic value 171712813 in class file JUpload/startup
java.lang.ClassFormatError: Incompatible magic value 171712813 in class file JUploadPlugin_ProgressMeter

So, I'm pretty stuck here. What can I do to resolve these issues?

Patrizio Bekerle

Tuesday 28 March 2006 1:29:46 am

I've added "jar" to my virtual host config.
Like this:

RewriteRule !(^/design|^/var/.*/storage|^/var/storage|^/extension/.*/design|^/kernel/setup/packages|^/share/icons|^/s
hare/smilies).*\.(gif|css|jpg|png|jar|js|ico|pdf)$ /<yourpathhere>/index.php

hm, the Java problem...
maybe you can try to get the newest version of JUpload from http://www.jupload.biz/

cheer, Patrizio

Eivind Marienborg

Tuesday 28 March 2006 1:41:25 am

I have verified that I have access to the file, so the rewriterules should be working.

I tried to download the newest version of JUpload, but still get the same error..

Do I perhaps need something installed on my server to get this working?

Patrizio Bekerle

Tuesday 28 March 2006 2:03:38 am

You only need Java on your client. Are there some online demos on http://www.jupload.biz/ ? Maybe you can try them to see if they work for you...

andre müller

Saturday 01 April 2006 3:21:36 am

i need a solution to upload lots of photos and directly extract exif/iptc data from the images and store them as attributes of the uploaded objects. would this be possible with your solution. or would this require big changes in the code?
i haven't even installed your extension yet, but will do so soon. looks great!

Patrizio Bekerle

Saturday 01 April 2006 5:06:56 pm

Yes, you need some changes in upload_process.php. You need to extract your info from the jpegs somehow (maybe imagemagic can do it) and write them to your custom fields.

cheers, Patrizio

Felix Laate

Sunday 02 April 2006 1:03:39 pm

Hi all,

I have the same problems as Eivind (at least when it comes to this module..). I run ez 3.7.5 and php 4.4.x.

I use this module on a number of sites, and for some reason I get this error on some of them.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Eivind Marienborg

Monday 03 April 2006 1:16:54 am

Hi!

I resolved the problems some days ago. I fixed the virtual host setup, downloaded the newest JUpload, and deleted all old versions of it on my local computer.

To troubleshoot:
Try accessing the jsr-file directly. If you get a ez-module error screen you have to change the virtual host settings. If you are able to access it, try deleting the local versions of JUpload, and try the extension again. If neither of this works, try downloading the newest JUpload.

:)

David Jones

Thursday 16 November 2006 6:32:09 am

I see nobody has posted here for a long time but I'm hoping there is still somebody around who can help.

I have installed the extension but the java applet doesn't display.

I guess that this is because the jar file is being blocked by EZP (I had a similar problem with files types with the sjsd editor extension)

However, I have tried the same solution (added the jar to the .htaccess file) but it still doesn't display the java.

The error trace is below

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

Can anybody help?

Thanks

H-Works Agency

Thursday 28 December 2006 10:31:45 am

Hi

Is it possible to setup this extension to overwrite files based on the content object name ?

If the extension encounter the image in destination directorie then it would overwrite it instead of creating a new node with another name.

Martin

EZP is Great

laurent le cadet

Thursday 27 November 2008 9:10:07 am

Hi,

I know this extension was published 3 years ago but I'm trying to make it works with ezp 4.0.1.

It stucks on :

Fatal error: Call to a member function instantiate() on a non-object in /var/www/photo.studiotmedia.com/extension/multiplefileupload/modules/multiplefileupload/upload_process.php on line 132

// Create object by user id in the section of the parent object
$contentObject =& $class->instantiate( $userID, $object->attribute( 'section_id' ) );

It's just in case there is still someone who works on it and to add a warning for futur users.

Regards.

Laurent

André R.

Thursday 27 November 2008 11:01:30 am

Tried this one?
http://projects.ez.no/ezmultiupload

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

laurent le cadet

Friday 28 November 2008 12:30:34 am

André,

A VERY usefull link.
Works perfectly.

Thanks.

Laurent

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.