EasyUploads add-on

This is one of the dilemmas of using add-ons. It is difficult for them to follow the framework evolution.

The code easyuploads is very good. Perfect design-pattern OOP.

Where do I find the recompile procedure howto?

Hello,
I have a question concerning the MultiFileUpload. I would like to set a maximum size of files to upload, and I do not know how to do it.

Thank you for your support

Bonjour,
J’ai une question concernant le MultiFileUpload. Je voudrais définir une taille maximale de fichiers à uploader et je ne sais pas comment m’y prendre.

Merci de votre soutien

Hello,

I have similar question like Babacar.
Is it possible to set maximum number (quantity) of uploaded files?

Thanks

Hi,
I have a problem with addon. When I upload a file, the file info and “X” button appears. But when I pess “X” button, nothing happens. It should reset component to initial view, right? Looks like a bug. My Vaadin version is 7.1.1. Also tried to downgrade to 7.0.5, result was the same.

Hi there,
nice add-on.
What is the recommended way to chenge the style of the “Choose file” button?

Thanks

Hi, great job!

I have noticed a problem with chrome (firefox works fine) with system OS FileDialog. When the upload button is clicked the FileDialog is opened, then after select a file and accept the dialog, it disappears and automatically opens again (this second time you can select a file and accept correctly ).

This is on the log file:
WARNING [com.vaadin.server.communication.ServerRpcHandler]
RPC call to com.vaadin.shared.ui.progressindicator.ProgressIndicatorServerRpc.poll received for connector 303 but no such connector could be found. Resynchronizing client.

vaadin version: 7.1.8
easyuploads version: 7.0.1

How can this be fixed?

Hi gofio, I have the same problem, but i use vaadin 6.0 and easyuploads 0.5.3!

Is this a bug of easyuploads? Someone could fix that?

Hi,
Can u provide any sample working source code for multifile upload in easyupload addon.
I am getting a following error when i try to run the easyupload sample program provided in the following link. I compiled the widgetset succesffuly .

Widgetset does not contain implementation for org.vaadin.easyuploads.MultiUpload. Check its @ClientWidget mapping, widgetsets GWT module description file and re-compile your widgetset. In case you have downloaded a vaadin add-on package, you might want to refer to add-on instructions. Unrendered UIDL:
+Unrendered UIDL

My sample code is :

MultiFileUpload upload = new MultiFileUpload() {

            /**
             * 
             */
            private static final long serialVersionUID = 1L;

            @Override
            protected void handleFile(File file, String fileName, String mimeType,
                    long length) {
                String msg = fileName + " uploaded. Saved to temp file "
                + file.getAbsolutePath() + " (size " + length
                + " bytes)";
                mainWindow.showNotification(msg);
            }
            @Override
            protected FileBuffer createReceiver() {
                FileBuffer receiver = super.createReceiver();
                receiver.setDeleteFiles(false);
                return receiver;
            }
        };
        upload.setCaption("Multifile upload");
        upload.setRootDirectory(TEMP_FILE_DIR);
        mainWindow.addComponent(upload);

Regards,
Vignesh

Bump.

I’m also having the same problem as Vignesh, the poster above.

I’m using Vaadin 7.1.8 with the Eclipse plugin and EasyUploads 7.0.1. I also get the ‘Widgetset does not contain implementation for org.vaadin.easyuploads.MultiUpload’ error.

Would someone be able to explain how to get this working please? I’ve updated the addons and recompiled the widgetset but with no success.

Thanks

After much trial and error, I finally fixed my problem regarding this.

I’m not sure how exactly, but the solution for me was to explicitly define my widgetset in a web.xml file. Prior to the problems I’ve had here, I had no web.xml file at all and was relying on annotations. For whatever reason, this wasn’t working.

I created a web.xml file and included the following (change the path ‘com.mycomp.myapp.widgetset.MyAppWidgetset’ to the path of your own ‘.gwt.xml’ file):

<init-param>
            <description>Application widgetset</description>
            <param-name>widgetset</param-name>
            <param-value>com.mycomp.myapp.widgetset.MyAppWidgetset</param-value>
</init-param>

Hello,
thank you for adapting this addon for Vaadin 7, I am using it in an application where I upload big image files to a database. It is working fine, but after the upload is finished I have a strange behaviour of the application when it is working in production mode. I have the following store strategy:

  1. The file is uploaded with the addon and handled by an uploadController which directlex stores the image in the database and marks it as not persistent. After the image is stored the upload controller creates a new helper object which only contains the pid, the filename, filetyp, filesize of the uploaded file, this object is stored in a list of the upload controller.

  2. After the uploads are finished (the files are already in the database) I press a store button in the application. The click handler of the button “gives” the upload controller to another controller called gallery controller. The gallery controller creates a new thread whith the upload controller as parameter. In this thread the image files are reloaded from the database, marked as persistent and creates a thumbnail.

And here I have the problem, after pressing the store button, the application is doing nothing for a long time, the more images I have uploaded the more time ist takes until I get the notification from the gallery controller that the gallery with the images is stored. At this time I see in the server logs, that the thread is started which finally adapts the images.
But during pressing the store button and the notification nothing appears in the server logs.

With the help of the IE F12 console I found the following network activities between pressing the store button and the server log that the thread is started, but I do not really no what is happening there. I think there might be a communication between the client javascript and the server, but I do not no why this takes so long. Perhaps someone can help me if he/she looks at the text I added at the end of the post, I hope so,
thank you
Florian

Communicationlog:
URL Protokoll Methode Ergebnis Typ Empfangen Benötigte Zeit Initiator Warten‎‎ Start‎‎ Anforderung‎‎ Antwort‎‎ Cachelesezugriff‎‎ Zeitspanne‎‎
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 117328 0 0 47 0 3105
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 31 ms XMLHttpRequest 117391 0 0 31 0 3058
/UIDL/?v-uiId=1 HTTP POST 200 application/json 293 B 47 ms XMLHttpRequest 117453 0 0 47 0 2980
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 46 ms XMLHttpRequest 117516 0 0 46 0 2918
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 117578 0 0 47 0 2855
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 117656 0 0 47 0 2777
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 32 ms XMLHttpRequest 117718 0 0 32 0 2730
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 117765 0 0 47 0 2668
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 31 ms XMLHttpRequest 117843 0 0 31 0 2606
/UIDL/?v-uiId=1 HTTP POST 200 application/json 293 B 47 ms XMLHttpRequest 117890 0 0 47 0 2543
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 117952 0 0 32 15 2481
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 31 ms XMLHttpRequest 118015 0 0 31 0 2434
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 31 ms XMLHttpRequest 118077 0 0 31 0 2372
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 118124 0 0 47 0 2309
/UIDL/?v-uiId=1 HTTP POST 200 application/json 293 B 32 ms XMLHttpRequest 118186 0 0 32 0 2262
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 118233 0 0 47 0 2200
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 46 ms XMLHttpRequest 118296 0 0 46 0 2138
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 118358 0 0 47 0 2075
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 118420 0 0 47 0 2013
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 118483 0 0 47 0 1950
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 46 ms XMLHttpRequest 118530 0 0 46 0 1904
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 118592 0 0 47 0 1841
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 32 ms XMLHttpRequest 118654 0 0 32 0 1794
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 118701 0 0 47 0 1732
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 46 ms XMLHttpRequest 118764 0 0 46 0 1670
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 118826 0 0 47 0 1607
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 118888 0 0 47 0 1545
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 63 ms XMLHttpRequest 118966 0 0 63 0 1451
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 119044 0 0 47 0 1389
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 119107 0 0 47 0 1326
/UIDL/?v-uiId=1 HTTP POST 200 application/json 293 B 63 ms XMLHttpRequest 119169 0 0 47 16 1248
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 62 ms XMLHttpRequest 119232 0 0 62 0 1186
/UIDL/?v-uiId=1 HTTP POST 200 application/json 293 B 46 ms XMLHttpRequest 119310 0 0 46 0 1124
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 119372 0 0 47 0 1061
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 119434 0 0 47 0 999
/UIDL/?v-uiId=1 HTTP POST 200 application/json 293 B 47 ms XMLHttpRequest 119497 0 0 47 0 936
/UIDL/?v-uiId=1 HTTP POST 200 application/json 293 B 63 ms XMLHttpRequest 119559 0 0 63 0 858
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 78 ms XMLHttpRequest 119637 0 0 78 0 765
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 119731 0 0 47 0 702
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 119793 0 0 47 0 640
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 46 ms XMLHttpRequest 119856 0 0 46 0 578
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 119918 0 0 47 0 515
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 119965 0 15 32 0 468
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 120027 0 0 47 0 406
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 31 ms XMLHttpRequest 120090 0 0 31 0 359
/UIDL/?v-uiId=1 HTTP POST 200 application/json 425 B 47 ms XMLHttpRequest 120136 0 0 47 0 297
/UIDL/?v-uiId=1 HTTP POST 200 application/json 2,73 KB 109 ms XMLHttpRequest 120199 0 0 109 0 172
/UIDL/?v-uiId=1 HTTP POST 200 application/json 426 B 63 ms XMLHttpRequest 120417 0 0 63 0 0

Has noone any advices for me, this is the main problem of the application?

Thank you,
Florian

Hi,

is there any change to make the browser button visible and the upload Button, after you choose the File, not visible?
The Button caption is a X and i don’t need it. I only want to show the browser Button.

Thank you,

Aissam

Could you provide instructions on how to build a jar file from the source code for the Vaadin 6 version?

Hi,

The V6 sources has no proper build script, but just uses Eclipse WTP + Vaadin plugin. Sorry about that :frowning:

Something like this is needed:

  1. Check out
    sources
  2. Import into eclipse as existing project, configure as WTP project with Vaadin plugin facet
  3. Export as → Vaadin Add-On

cheers,
matti

Hi,

Any plans to upgrade to 7.2.0?

Is it broken in 7.2.0?

Hi Matti,

Seems it is broken.

[ERROR]
Errors in ‘jar:file:/C:/Users/mg/.m2/repository/org/vaadin/addon/easyuploads/7.0.1/easyuploads-7.0.1.jar!/org/vaadin/easyuploads/client/ui/VMultiUpload.java’
[INFO]
[ERROR]
Line 261: Type mismatch: cannot convert from double to int
[INFO]
[ERROR]
Aborting compile due to errors in some input files

Hi,

I made some changes that should make it compatible with 7.2 just a moment ago. The new version is 7.2.0. It also includes a fix to some oddities with Chrome, a fix contibuted by Teemu Pöntelin.

cheers,
matti

works!
Thx for quick fix.