Drag and drop files into webclient

Forum to discuss the Web client version of Servoy.

Drag and drop files into webclient

Postby robrecht » Wed Jan 15, 2014 11:19 am

Hi,

Is it possible to drag and drop files from pc desktop into the webclient?
This works perfectly in smart client but when I try to drop files in the webclient the onDrop method is not called.
Isn't this supporterted in Servoy or is there a different approach for webclient?

Thanks
robrecht
 
Posts: 99
Joined: Wed Aug 01, 2012 4:30 pm

Re: Drag and drop files into webclient

Postby grahamg » Wed Jan 15, 2014 2:37 pm

Yes you can have drag & drop in WebClient.

We sponsored a Multi-File drag&drop plugin for WebClient about 18 months ago. Free download from https://www.servoyforge.net/projects/multi-file-upload.

Always worth a look around ServoyForge - it's a tremendous source of additional plugins for Servoy.


Regards
Graham Greensall
Worxinfo Ltd
www.worxinfo.com
grahamg
 
Posts: 752
Joined: Fri Oct 03, 2003 3:15 pm
Location: Midlands UK

Re: Drag and drop files into webclient

Postby robrecht » Thu Jan 16, 2014 3:34 pm

Hi Graham,

Thanks for the advice, this multi file uploader looks nice.
But I don't see any drag and drop functionality?
Now I take a file on my desktop and drag it into the smart client. Then the smart client handles the file and uploads it to the application server.
I expected the same in the Multi-File plugin? I see a popup with some colored buttons, but still I am not able to drag the files into this pop-up
Am I missing something here?

Thanks
robrecht
 
Posts: 99
Joined: Wed Aug 01, 2012 4:30 pm

Re: Drag and drop files into webclient

Postby grahamg » Thu Jan 16, 2014 4:33 pm

Just tested again and works for me.

Once the popup is showing I can just drag/drop files. This is with OSX and tested Opera + Chrome - however when we first built it I tested on various Windows versions plus wide range of browsers.

Do check you followed the install instructions carefully and have setup the 'jqfu' folder in application_server/server/webapps/ROOT.

HTH
Graham Greensall
Worxinfo Ltd
www.worxinfo.com
grahamg
 
Posts: 752
Joined: Fri Oct 03, 2003 3:15 pm
Location: Midlands UK

Re: Drag and drop files into webclient

Postby robrecht » Thu Jan 16, 2014 6:52 pm

Do you use servoy 7.3 ?
The folder is properly copied into the ROOT folder
When I run the test.html there, 'file:///C:/Servoy7/application_server/server/webapps/ROOT/servoy-service/multifile/uploader.html?clientID=1' is trying to be opened but it doesn't exist.
Does it work in developer?

Thanks
robrecht
 
Posts: 99
Joined: Wed Aug 01, 2012 4:30 pm

Re: Drag and drop files into webclient

Postby grahamg » Thu Jan 16, 2014 7:20 pm

Developer & Server are 7.3.1 and works fine in both. Also worked fine on Servoy 6.x.

On my Developer setup I can select file: Applications/_Servoy/SV7_PT7/application_server/server/webapps/ROOT/jqfu/uploader.html and it opens in a Browser - although without the CSS.

Might be worth checking the permissions on your C:/Servoy7 folder

Have attached image of Drag&Drop on live system - you can see four files being moved onto the white zone.



SV7_DragnDrop.png
You do not have the required permissions to view the files attached to this post.
Graham Greensall
Worxinfo Ltd
www.worxinfo.com
grahamg
 
Posts: 752
Joined: Fri Oct 03, 2003 3:15 pm
Location: Midlands UK


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 12 guests