NetTalk Central

Author Topic: File Upload Drag and drop  (Read 3572 times)

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
File Upload Drag and drop
« on: July 16, 2014, 01:54:15 AM »
I remember there was a webinar in which Bruce demonstrated drag and drop file uploading.
I tried this using example 26.
If I click add file and use the browse and select a file I get image 1.png
If I  click the start button I get the message uploaded.image 2.png
If I drag the same file onto the add button I get image 3.png
However clicking on the Start button I get image 4.png where the uploading button is highlighted and nothing else happens, the document is never uploaded

[attachment deleted by admin]
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: File Upload Drag and drop
« Reply #1 on: August 24, 2014, 06:48:57 AM »
Hi Bruce
Any progress on this issue.
I developed a file upload procedure which used the drag and drop facility where the client  could use the preview pane in Windows Explorer to view the contents of the document before dragging it into the application. This gave a reasonably full sized view of the document allowing the information to be indexed and then dragged into the form. Using the add file browse displays a much smaller preview not practical for viewing the document before processing resulting in  the user right clicking the image and selecting preview to view the document and then close the preview before selecting it, a much more cumbersome approach.
Unfortunately with the client having used the drag/drop approach I am having a problem explaining to him why it doesn't work anymore.
Do you have some code I can apply in the meantime to reinstate this functionality?
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: File Upload Drag and drop
« Reply #2 on: September 01, 2014, 11:40:53 PM »
fixed in 8.26.

If you want to try it in the meantime, use the attached javascript file. Put this into your \accessory\libsrc\win\netweb\web\scripts folder, then do a Copall.bat and gzipall.bat in your app folder.

Cheers
Bruce

[attachment deleted by admin]

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: File Upload Drag and drop
« Reply #3 on: September 02, 2014, 09:00:38 AM »
Hi Bruce
Copied the file into the scripts folder under libsrc
Ran copyall.bat and gzipall.bat in the app folder
The jquery.fileupload.js file in the app scripts folder is dated 2014/09/02 as is the file in the libsrc folder.
Adding a file and clicking start uploads
Dragging the file onto the add button displays the file name but click start still has no effect.
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: File Upload Drag and drop
« Reply #4 on: September 09, 2014, 10:13:27 PM »
I'm trying to get it sorted Terry, but it's very complicated. At the moment it does the drag & drop, but only once. After that the field number changes - for reasons I'm trying to track down. I was hoping to get the fix in the 8.26 build, but if I don't get it sorted in the next hour or so it'll have to wait for 8.27. there are some other issues waiting to go out in the 8.26 build which have been fixed already, so I need to get those up.

update -- looks like the fix is in 8.26

Cheers
Bruce
« Last Edit: September 10, 2014, 12:02:52 AM by Bruce »