Giter VIP home page Giter VIP logo

vaadin-plupload's People

Contributors

exsio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

livotov jmuilu

vaadin-plupload's Issues

There is no information about pl.exsio.plupload.client.PluploadCilentRpc.setOption.

I tried to integrated Plupload to my project. Follow the "Simple" example to test but not working.
Here is the test results

  1. Click "Browse" button not showing the open file dialog. No errors showing on server side.
  2. Javascript console got the errors as followings
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

  • Vaadin: 7.4.1
  • Vaadin-Plupload: 2.0.0
  • Apache Tomcat/7.0.59
  • Developing in Eclipse with Ivy to download add-on

I even tried same code in a fresh Vaadin project but got the same result.
Any ideas how to solve?

VaadinSession Lock

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()

Filtering files by MimeType instead of extension

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.

IE9 compatibility

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

File Dialog wont open

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

File uploads but with strange file name

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?

client side exception

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?

Multiple Files Upload Issue

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.

A version without temp files?

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.

Getters for start and stop buttons in upload manager

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.

Vaadin4Spring + plupload

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 :)

Problems with Uploading a File

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.