Forums / Developer / MultipleFileUpload extension discussion

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

eZ debug

Timing: Jan 15 2025 07:27:19
Script start
Timing: Jan 15 2025 07:27:19
Module start 'content'
Timing: Jan 15 2025 07:27:19
Module end 'content'
Timing: Jan 15 2025 07:27:20
Script end

Main resources:

Total runtime0.3218 sec
Peak memory usage6,144.0000 KB
Database Queries134

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0097 686.2031214.7891
Module start 'content' 0.00970.0058 900.9922205.8438
Module end 'content' 0.01550.3063 1,106.83591,493.8672
Script end 0.3217  2,600.7031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00672.0974200.0003
Check MTime0.00140.4456200.0001
Mysql Total
Database connection0.00080.248010.0008
Mysqli_queries0.267383.07631340.0020
Looping result0.00140.43711310.0000
Template Total0.305895.010.3058
Template load0.00300.945010.0030
Template processing0.302794.066610.3027
Override
Cache load0.00270.828710.0027
Sytem overhead
Fetch class attribute can translate value0.00090.284910.0009
XML
Image XML parsing0.00020.076510.0002
General
dbfile0.00040.1370140.0000
String conversion0.00000.002530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs