exsio / vaadin-plupload Goto Github PK
View Code? Open in Web Editor NEWPluploader integration for Vaadin 7.x
License: MIT License
Pluploader integration for Vaadin 7.x
License: MIT License
I tried to integrated Plupload to my project. Follow the "Simple" example to test but not working.
Here is the test results
Fri Mar 20 08:32:23 GMT+800 2015 com.vaadin.client.VConsole
SEVERE: There is no information about pl.exsio.plupload.client.PluploadCilentRpc.setOption. Did you remember to compile the right widgetset?java.lang.IllegalStateException: There is no information about pl.exsio.plupload.client.PluploadCilentRpc.setOption. Did you remember to compile the right widgetset?
at Unknown.Eg(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.Ig(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.Og(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.qrd(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.wKb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.yKb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.xKb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.Qwb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.Pwb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.bxb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.jvb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.hxb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.kxb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.$Cb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.mDb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.eval(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.li(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.oi(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.eval(com.vaadin.DefaultWidgetSet-0.js)
Caused by: com.vaadin.client.metadata.NoDataException: There are no parameter type data for pl.exsio.plupload.client.PluploadCilentRpc.setOption
at Unknown.Eg(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.Lg(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.I9b(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.sac(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.wKb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.yKb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.xKb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.Qwb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.Pwb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.bxb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.jvb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.hxb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.kxb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.$Cb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.mDb(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.eval(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.li(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.oi(com.vaadin.DefaultWidgetSet-0.js)
at Unknown.eval(com.vaadin.DefaultWidgetSet-0.js)
Below is my environment
I even tried same code in a fresh Vaadin project but got the same result.
Any ideas how to solve?
Thanks for a great library!
I think you need to put:
VaadinSession.getCurrent().getLockInstance().lock();
(and, obviously, .unlock()) in PluploadReceiver#getInstance()
If you don't lock the session and run an application with "-ea" VM argument, you get an java.lang.AssertionError from VaadinSession#getRequestHandlers()
When upload is in progress. To remove file from queue I need to click a lot of times on remove button and spam server. After n0 times request will be processed by server.
Version 1.5.4
Hello
I'm using this addon and it is amazing. I have a small issue, I am filtering file by extension, as suggested in the documentation.
It would be possible to filter instead by MimeType? For example I want to import only .png files. But if I try to import a file without extension and Mimetype is "image/png" I would like to accept it. This can be done before sending the file? After sending the file I think it can be done easily, but I would like to do this before sending it.
I would appreciate any tips to guide me in the right direction, thanks in advance.
Hi,
The vaadin plupload plugin shows an "INIT_ERROR" on startup in IE9. No error in server console but in browser debug console I see this:
455ms 28 (class pl.exsio.plupload.client.PluploadConnector) :
455ms pl.exsio.plupload.client.PluploadServerRpc.error([{"code":-500,"message":"Init error."}])
456ms pl.exsio.plupload.client.PluploadServerRpc.destroy([])
If I remember well, the plupload plugin has multiple choices to support "older" browsers without HTML5 support. Is there a way to choose the underlying technology of the Plupload plugin ?
Regards,
Frank
In our project we are using your upload plugin. But in some browsers we cannot upload any file.
The file open dialog doesn't open on Chromium Version 56.0.2924.76.
Same on Microsoft Edge 38.14393.0.0
It's simple to reproduce this Problem.
On your example site: http://vaadin-plupload.exsio.eu/plupload-vaadin-examples/
Go to 'Simple Plupload'
When i click on 'Browse' nothing happens.
Regards
Do you support File input attribute(http://stackoverflow.com/a/10503561/1246520)?
I just found PluploadFilter which is some kind of server side filter, or am I wrong?
how cani change the language settings, or add es.js?
Please upload sample code for .. just display specific mime type file while choosing the file using Plupload
I am not sure if others are also having the same issue. I can upload the file to the server. However, the file has strange file name something like:
o_1bcac12751s5f5i3mgniba1735d.txt
o_1bcac12751s5f5i3mgniba17457d.pdf
final Plupload myuploader = new Plupload("Add Files");
myuploader.addFileUploadedListener(new Plupload.FileUploadedListener() {
/**
*
*/
private static final long serialVersionUID = 1L;
@Override
public void onFileUploaded(PluploadFile file) {
file.getUploadedFile();
Notification.show("This file was jus uploaded: " + "(local name: " + file.getUploadedFile() + ")");
}
});
Vaadin version: 7.7.1
Addon version: 2.1.0
Looks like there needs to be some behaviour implemented when receiving these files in the server...could you please give some code snippet or example how I do not get those hashed filenames and get the proper filenames instead?
I tried to add a PluploadField to a form and got a client side exception:
Error performing server to client RPC callsjava.lang.IllegalStateException: There is no information about pl.exsio.plupload.client.PluploadClientRpc.setOption Did you remember to compile the right widgetset?
.....
Caused by: com.vaadin.client.metadata.NoDataException: There are no parameter type data for pl.exsio.plupload.client.PluploadClientRpc.setOption
The WidgetSet was recompiled.
Can anyone help me please?
I'm using Vaadin 7.7.3 and Plupload wrapper for Vaadin 2.1.0. I wrote a trivial piece of code:
PluploadField<File> uploadField= new PluploadField<>(File.class);
uploadField.getUploader().setUploadPath(uploadDirectory.getAbsolutePath());
FormLayout formLayout = new FormLayout(uploadField);
I can upload a single file just fine, however, upload doesn't even start if I select multiple files. In browser's console I can see the following line, which might explain why:
INFO: Received xhr message: for(;;);[{"syncId": 5, "clientId": 5, "changes" : [], "state":{}, "types":{"24":"24"}, "hierarchy":{"24":[]}, "rpc" : [["24","pl.exsio.plupload.client.PluploadCilentRpc","removeFile",["o_1avjedj7pr2gkgq1grb1cvi12ksb"]],["24","pl.exsio.plupload.client.PluploadCilentRpc","removeFile",["o_1avjedj7p16tu13r1iq1haj19ihc"]]], "meta" : {}, "resources" : {}, "timings":[2152, 211]}]
Server requests to remove both files I selected right after filesFiltered
message is sent. I experience the same issue Opera 40.0 and Internet Explorer 11. On Edge, Browse button doesn't bring up file selection dialogue at all.
Even when i set: setMultiSelection(false); browser allow user to select multiple files.
Does this plugin support portals? ( for example liferay )
Any plans to implement a "streaming" version, without temp files? I tried this in Bluemix, but it didn't manage to create temp file. In addition to be more compatible, streaming would also be bit more efficient in some cases (if file handling will take long in server as well).
Thanks for a great library! I hope I can soon drop supporting EasyUploads totally. This is way more modern and cooler project.
I've Used this add-on version 2.1.0 , At Microsoft Edge 41.16299.248.0
it fails to open the file input browser window , also the official examples doesn't work http://vaadin-plupload.exsio.eu/plupload-vaadin-examples/ in the mentioned Microsoft edge , pls have a look when possible
Good day!
Nice addon.
Please restore getters for buttons in upload manager or provide some functions to change their visibility, icons and etc. In my case I starting download automatically and don't need to see start/stop buttons at all.
Hi,
i have a problem after i use this addon in my application that powered by vaadin4spring (https://github.com/peholmst/vaadin4spring).
everytime i tried to run my application, it always give me an error "Requested resource [/VAADIN/widgetsets/pl.exsio.plupload.PluploadWidgetSet/pl.exsio.plupload.PluploadWidgetSet.nocache.js] not found from filesystem or through class loader".
it seem somehow, class dev.DevUI.DevServlet in addon jar override my application main servlet for /* path
thank u for a great addon :)
Im getting the following warnings to the console:
2015-08-16_15:44:53.777 WARN o.s.web.servlet.PageNotFound - Request method 'POST' not supported
2015-08-16_15:44:53.777 WARN o.s.w.s.m.s.DefaultHandlerExceptionResolver - Handler execution resulted in exception: Request method 'POST' not supported
2015-08-16_15:44:54.937 WARN o.s.web.servlet.PageNotFound - Request method 'POST' not supported
2015-08-16_15:44:54.938 WARN o.s.w.s.m.s.DefaultHandlerExceptionResolver - Handler execution resulted in exception: Request method 'POST' not supported
2015-08-16_15:44:55.977 WARN o.s.web.servlet.PageNotFound - Request method 'POST' not supported
2015-08-16_15:44:55.977 WARN o.s.w.s.m.s.DefaultHandlerExceptionResolver - Handler execution resulted in exception: Request method 'POST' not supported
2015-08-16_15:44:57.019 WARN o.s.web.servlet.PageNotFound - Request method 'POST' not supported
2015-08-16_15:44:57.020 WARN o.s.w.s.m.s.DefaultHandlerExceptionResolver - Handler execution resulted in exception: Request method 'POST' not supported
the full description can be read here:
http://stackoverflow.com/questions/32036043/uploading-a-file-fails-with-vaadin-spring-plupload-addon
would be nice if you have any idea why this happens with vaadin SPRING BOOT
Great addon! Do you plan on supporting Vaadin 8?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.