EasyUploads add-on

Hi,

Does your IE have Flash player installed? The multi file upload on IE depends on swfupload library that uses flash to the multi file upload magic that is not possible with native IE.

cheers,
matti

Matti,
Thank you for the reply.
Yes, my IE does have Flash Payer installed.
I think there is swfupload javascript conflicts in liferay and easyuploads for IE.

Oh, that might happen indeed on the era of various JS optimizers. For some add-on I remember I had to wrap the optimized helper javascript library into a custom namespace to avoid collisions with another library. A similar hack here might do the trick.

cheers,
matti

Matti,
I am going to try your suggestion.

In liferay these are the swfupload files:
under \html\js\misc\swfupload: swfupload.js, swfupload_f8.swf, swfupload_f9.swf, swfupload_f10.swf
under \html\js\liferay: upload.js

In easyuploads, there are the swfupload files: swfupload.js, swfupload.swf

Would you mind to show me what you mean by wrapping the helper javascript library into a custom namespace? where would I start?

Hi,

Here is an example how I did it in Vaadin XS project:

http://dev.vaadin.com/browser/svn/addons/XS/vaadin-xs/src/main/java/com/vaadin/addons/xs/gwt/public/vaadin-xs/crypto.js

cheers,
matti

Hi,

anyone else is experiencing unreliable behavior of EasyUploads/MultiUpload v0.51 on IE8?

Clicking on upload button should normally trigger flash-powered file selector pop-up, but under certain circumstances nothing happens. Just plain nothing. I have several deployment environments with identical web app installed. On some of them upload button works always as expected while on others never works at all. I haven’t managed to find a pattern yet.

Older version - v0.49 didn’t manifest named issue, I believe. Browsers other than IE8, namely FF and Chrome, are not affected by this.

Tomas

This component seems to be pretty nice. Is there a way to see if an upload failed?

When using the built-in upload component, I implemented the Upload.FailedListener interface. Does this component have something similar?

Hi,

If there isn’t there should be, both in MultiFileUpload and in UploadField. Failed listeners should just be delegated to the backing Upload component(s). Would you fill a feature request to the
project page
. Patch would be extra nice, but just the feature enhancement might get wheels rolling. There is also one enthusiastic committer in the project nowadays who might fix this before I have a change to open my eclipse. :grin:

cheers,
matti

Hi Matti,
I am unable to follow your example to change the namespace for swfupload javascript as you instructed. I really hate to give up my liferay portlet only because it doesn’t work in any IE browsers, will you help us getting through this issue? Thanks.

Di

hi there,

the addon works nicely for me. but i want to style the uploadbutton like the rest of my application.
i am afraid i cant find a way to do so.

is there a way to give the uploadbutton a custom styling?

please let me know

thx
steffan

can anyone tell me with which version of liferay portal and vaadin u guys use to be able to use easyupload vaadin Addon multiple File upload?

right now, i have Vaadin 6.4.10. The one that is already provided by Liferay portal 6.1.0 CE

But i tried to use multipleFileUpload from easyUpload vaadin addon, it didnt work. It only works with single file.

Then i tried to get Vaadin addon control panel for liferay to update my vaadin version to the newest Vaadin 6.8.1 and compile the widget.

But my vaadin application on the liferay portal did not show anything…

Can anyone help me?

Hi Matti

I’ve found a bug in Firefox on Linux. When focusing the multi-upload element, the system-window opens directly. Problem, the following onClick event causes the event handler is not reset. So after closing the window, a window is called up again, endless! I’ve fixed it, as I’ve commented in the file “VMultiUpload.java” line 56 “// fireNativeClick(fu.getElement());”. Now the system-window is called with onClick. This solution worked temporarily for me. Can you fix it? The error was partly also in Firefox on Windows, here was the system-window opened twice.

thx Frank

thank you
Frank Schreiber
for a temporary solution I searched for a few days how to get rid of this problem.

Hello,

Is really EasyUpload not supported with Vaadin 7 ?
If not, is it possible to make it supported for Vaadin 7 ?

Best.

Hi,

Sorry, no V7 support yet, but V7 is not here yet either :wink: Someday - sure. I’m personally using this add-on in only one project and I have no plans to move that to V7 any time soon. From V7 upgrades alone, OpenLayers Wrapper and DontPush Ozonelayer will at least be higher on my “hobby coding” priority list. The project page has the code (WTP project, requires Vaadin plugin) - all help highly appreciated!

If you really really need this soon and have no resources (or skills) to take apart in V7 upgrade, there is always the chance to
go pro
and buy one of our smart sharp experts to do this.

Frank, please add
an issue report
to the project page so the fix don’t get lost.

cheers,
matti

Matti,
Would you be interested helping us to make the Easyuploads multifile upload to work for IE8+ using Liferay 5 & 6 vaadin portlet? Please let me know how I can get in touch with you to discuss the compensation for your time. Thank you very much.
Di

Hi,

Sure, but I’m personally quite busy with our official add-ons currently. But we have
an army of experts at your service
and I will personally help them to tackle complex issues if they arise. The patch built this way will be owned by you, but I of course hope that you will then donate it back to community and I will then build a new version of the add-on.

cheers,
matti

Hi Matti,

many thanks for this great add-on! :-))

I don’t need the drop zone and so I have make the visibility of the drop zone configurable. For that I have add the following code to the MultiFileUpload class:


    private boolean dropZoneVisible = true;

    /** Returns the dropZoneVisible attribute.
     * @return the dropZoneVisible.
     */
    public boolean isDropZoneVisible() {
      return dropZoneVisible;
    }

    /** Sets the dropZoneVisible attribute to the specified value.
     * @param dropZoneVisible the new dropZoneVisible value
     */
    public void setDropZoneVisible(boolean dropZoneVisible) {
      this.dropZoneVisible = dropZoneVisible;
    }

And I have change the MultiFileUplaod.prepareDropZone() method to:


    /**
     * Sets up DragAndDropWrapper to accept multi file drops.
     */
    private void prepareDropZone() {
        if (dropZone == null && isDropZoneVisible()) {
            Component label = new Label(getAreaText(), Label.CONTENT_XHTML);
            label.setSizeUndefined();
            dropZone = new DragAndDropWrapper(label);
            dropZone.setStyleName("v-multifileupload-dropzone");
            dropZone.setSizeUndefined();
            addComponent(dropZone, 1);
            dropZone.setDropHandler(this);
            addStyleName("no-horizontal-drag-hints");
            addStyleName("no-vertical-drag-hints");
        }
    }

I think this could be also interesting for other guys. But I don’t have write access to your svn repo. May be you want change and commit it …

Regards,
Steffen

Hi,

Thanks, good stuff. Could you post an issue with a patch to
the project page
? Don’t currently have this project open and I’m afraid I might forget this improvement.

You can also send me your google account (email) so I can add you commit rights to the project.

cheers,
matti

Hi,

thanks for that. I have your changes tested currently on FF (10 on Linux) and IE9 and IE8. It works fine. I have also add a issue on the EasyUploads project page: http://code.google.com/p/easyuploads-addon/issues/detail?id=11