Upload multiple files

Upload multiple files

Friday 25 July 2008 1:14:30 am - 16 replies

Modified on Friday 25 July 2008 1:19:11 am by Albe Terra

Author Message

Albe Terra

Tuesday 29 July 2008 1:38:03 am

Please...somebody can help me?

I have tried to manage files as a content class called "File" and connect them to the master content class through object relations.

The problem is that when I create a new instance of the master class, I try to create new Files through object relations. The system let me only specify the name of the new object and not its attributes, in particular the system doesn't let me upload the file.

Help!

Thank you very much, Albe

Gabriel Finkelstein

Thursday 31 July 2008 12:33:36 pm

I don't think there's such a datatype.
Other options that come to my mind are:
1) You could let the user create a file under an object of "master class", and add a button "Send and create another", and then redirect him to a new file creation form, until they choose "Send and finish".
2) Add an object relation list datatype to the master class, and put a button that pops-up a window with a file creation from. After submitting the file in that popup, with a little help from javascript, add that file to the object relation list attribute. And then submit the master object.

Patrick Kaiser

Thursday 31 July 2008 2:30:53 pm

you could just wait for the 4.1 release which will incorporate a multiple-files-upload-feature. Im waiting for for this myself ;-)

Someone from ez: when can we expect an (alpha) release of 4.1? At the conference it was announced as "a matter of weeks"..

best regards,

patrick


Best regards,

Patrick

André R.

Thursday 31 July 2008 3:21:38 pm

It depends on 4.0.1, and with the vacations and all (for instance url alias issues) at the moment a few weeks was a small understatement it seems.
I would guess sometime in August, but that's not official.

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

Manuele Arenghi

Monday 17 January 2011 2:48:38 am

I'm using 4.3.0 but when I create or edit a class I can't find an attribute "multiple-files-upload-feature".The only way to upload file is using file attribute and this allow to upload one only file .

It is not possible to upload multiple file

Has anyone found the solution?

Thanks

http://manuele.ath.cx

Gaetano Giunta

Monday 17 January 2011 5:31:03 am

@Manuele for multiple file uploads you can let the users create children objects of your current object. Then use the multiple-upload flash applet, which is available by default in the editing toolbar in the frontend design. There are a few ini parameters you will be able to use to decide what kind of files can be uploaded.

Principal Consultant International Business
Member of the Community Project Board

Patrick Kaiser

Monday 17 January 2011 7:05:18 am

You may also want to try out an extension from xrow that comes with a custom datatype, that can store any number of files. It uses plupload for the fontend, which is also nice.

http://projects.ez.no/xrowmultibinary

Not sure about the stableness though...


Best regards,

Patrick

Manuele Arenghi

Thursday 20 January 2011 2:04:30 am

Thanks to everyone.

The "multiple-upload flash applet" isn't available by default on my site because it is not a a native 4.3 version:it was born as 3.4 and has been updated a lot of times .

I would like to try the solution Patrick suggests but I'm not able to download this extension:the page http://projects.ez.no/xrowmultibinary/downloads is empty .Can you provide,please, a link to the xrowmultilibinary extension' download?

Thanks

Manuele

http://manuele.ath.cx

Patrick Kaiser

Thursday 20 January 2011 3:01:47 am

Grab it via SVN: http://projects.ez.no/xrowmultibinary/subversion


Best regards,

Patrick

Steven E. Bailey

Thursday 20 January 2011 5:24:13 am

Or you can use http://projects.ez.no/plupload - Lol.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Manuele Arenghi

Friday 21 January 2011 12:44:01 am

-When I try to import via SVN from http://svn.projects.ez.no/xrowmultibinary/ I'm asked to enter username and password but I don't know how can I register to get them.Can you help me?

-I installed plupload extension following installation instructions 1 and 2 in the README.txt

Inspite of this I can't see the following:

3) This will add a plupload icon to the webtoolbar on the frontend at locations where the user has write permission and the object is a container. On the backend a similar button will be put in the right menu. Both can be disabled in the settings folder. Alternatively go to <site_url>/plupload/widget/<node_id> and if the permissions are correct you'll get the widget(s).

When I browse (as administrator) to <site_url>/plupload/widget/<node_id> I get at the top of the page:

"

handleError( eZError::KERNEL_NOT_AVAILABLE, 'kernel' ); // Fetch parent node $parentNode = eZContentObjectTreeNode::fetch( $parentNodeID ); // Check if parent node object exists if( !$parentNode ) return $Module->handleError( eZError::KERNEL_NOT_FOUND, 'kernel' ); // Check if current user has access to parent node and can create content inside if( !$parentNode->attribute( 'can_read' ) OR !$parentNode->attribute( 'can_create' ) ) return $Module->handleError( eZError::KERNEL_ACCESS_DENIED, 'kernel' ); $tpl = templateInit(); $tpl->setVariable( 'parentNodeID', $parentNodeID); $Result['content'] = $tpl->fetch( 'design:widget.tpl' ); //if standalone then do pagelayout = false maybe $Result['path'] = array( array( 'url' => '/', 'text' => ezi18n( 'design/plupload', 'Home' ) ), array( 'url' => false, 'text' => 'plupload' ), array( 'url' => false, 'text' => 'widget' ) ); ?>

"

Can you help me?

thank you

http://manuele.ath.cx

Steven E. Bailey

Friday 21 January 2011 4:30:29 am

What happens if you go to:

<site_url>/plupload/widget/2

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Manuele Arenghi

Friday 21 January 2011 5:22:44 am

If I go to <site_url>/plupload/widget/2 the result is the same:on the top of the page,before the page it's shown the following message

handleError( eZError::KERNEL_NOT_AVAILABLE, 'kernel' ); // Fetch parent node $parentNode = eZContentObjectTreeNode::fetch( $parentNodeID ); // Check if parent node object exists if( !$parentNode ) return $Module->handleError( eZError::KERNEL_NOT_FOUND, 'kernel' ); // Check if current user has access to parent node and can create content inside if( !$parentNode->attribute( 'can_read' ) OR !$parentNode->attribute( 'can_create' ) ) return $Module->handleError( eZError::KERNEL_ACCESS_DENIED, 'kernel' ); $tpl = templateInit(); $tpl->setVariable( 'parentNodeID', $parentNodeID); $Result['content'] = $tpl->fetch( 'design:widget.tpl' ); //if standalone then do pagelayout = false maybe $Result['path'] = array( array( 'url' => '/', 'text' => ezi18n( 'design/plupload', 'Home' ) ), array( 'url' => false, 'text' => 'plupload' ), array( 'url' => false, 'text' => 'widget' ) ); ?>

http://manuele.ath.cx

Steven E. Bailey

Friday 21 January 2011 11:12:01 am

The problem is that short_open_tag = Off in your php.ini while the extension/plupload/modules/plupload/widget.php has a short tag - so this isn't executing as php.

The easiest fix (and this is actually a bug) is to change the first line of extension/plupload/modules/plupload/widget.php from:

<?

to

<?php

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Manuele Arenghi

Saturday 22 January 2011 2:01:05 am

You were right!

I changed form <? to <php and now the page <site_url>/plupload/widget/2 opens

Now I encounter other problems:

1-The page does not seem to be formatted:the style is not the same that can be seen at http://www.plupload.com/example_all_runtimes.php

No table is present and buttons "add files" and "start upload" appear as normal text .Any suggestions?

2-The upload button works correctly only with html5-using flash the upload does not start.

I've created folder /opt/apache/apache-2.0.63/htdocs/EZ/plupload/upload with 777 permissions ,but,using upload button with flash, in apache error log I read:

<<File does not exist: /opt/apache/apache-2.0.63/htdocs/EZ/plupload/upload/2>>

What should I do to have flash working?

3-In the README.txt -installation point 3:<<This will add a plupload icon to the webtoolbar on the frontend at locations where the user has write permission and the object is a container.>>

I can't see this icon:my aim is to create a class ,with 3 attributes:one of these should be a plupload multiple upload.Is there a way to include plupload extension in the location I want it to be?

4-I would like the users could delete theirs upload files,but also at http://www.plupload.com/example_all_runtimes.php I can't see a "delete" button after upload done .Is there some setting to match this issue?

Thank you for attention to this issue

Manuele

http://manuele.ath.cx

Steven E. Bailey

Saturday 22 January 2011 2:43:39 am

1. I put a screenshot here http://projects.ez.no/plupload/gallery/screenshot - but I can't see anything but the thumbnail. It should have all the runtimes (or a message saying it isn't on your system) like on this page http://www.plupload.com/example_queuewidget.php

You might want to take a look at the forum - Marko Žmak found a different bug in widget.tpl (not sure why I didn't get a notification mail).

2. No idea. Sounds like a problem with flash. Did you try different browsers/machines?

3. Are you using admin2? Then change the design directory to admin2 instead of admin. The plupload button should appear in the right column whenever you are at a container for which you have write permissions.

4. This extension only makes it easy to upload multiple files and large files using plupload - datatypes, deletion, etc. is not what it does... if you want different functionality then this is not the extension for you.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

You must be logged in to post messages in this topic!

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