Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 14 total
Thread File upload with a simple click-dropzone (click, Drag&Drop, multi-select)
Wed, Mar 30 2016 1:51 PMPermanent Link

Andreas Blenk

Hey,

referring to this discussion:
http://www.elevatesoft.com/forums?action=view&category=ewb&id=ewb_general&page=1&msg=9373#9373

I have created a example app with following features:

- Drag&Drop one or more files to a BasicPanel
- Select one or more files after clicking on a BasicPanel
- Retrieving the Base64 String of the selected files. (this is helpful, if you want to send it to a server with custom functions like RemObjects SDK)
- activate/deactivate multi-select support

Missing features:
- checking of the mime-type (for example: pictures only)

Limitations:
The JS-Code uses the FileApi. This is not supported in IE9: http://caniuse.com/#feat=fileapi

If you have any suggestions don't hesitate to write me!

You can find the example attached!
--

Andreas Blenk



Attachments: FileUploadExample.zip
Thu, Mar 31 2016 2:50 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Andreas,

<< I have created a example app with following features: >>

Beautiful, thanks.  I'll check it out.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Apr 21 2016 2:00 PMPermanent Link

Trinione

Andreas:
Thanks for this. I am putting it to use. Smile

Pity IE9 continues to hold us back though. Frown
Mon, May 2 2016 7:16 AMPermanent Link

Trinione

Is the following code in this program necessary?

type
  external function TriggerOpenFileDialog(): String;
Sun, Jun 19 2016 5:05 AMPermanent Link

Andreas Blenk

Trinione wrote:
type
  external function TriggerOpenFileDialog(): String;

No, this is not necessary. I forgot to delete it after several tests.
--

Andreas Blenk
Sun, Aug 21 2016 1:38 PMPermanent Link

thomh

Hi,

Has anybody tried running this example in the latest 2.05b1 version? I am getting this error on startup:

"Peristent load error (Unable to get property 'addEventListener' of undefined or null reference
Line 29240"

In this part of the code:

webforms_tapplication.$p.tapplication_doautocreateclasses = function(amainformname)
{
  var $t = this;
  try
  {
     $t.tapplication_fautocreateclasses[$t.tapplication_fautocreateclassnum].create1.call(new $t.tapplication_fautocreateclasses[$t.tapplication_fautocreateclassnum].$c, $t);
     $t.tapplication_fautocreateclassnum++;
     if ($t.tapplication_fautocreateclassnum < $t.tapplication_fautocreateclasscount)
        $a(function() { $t.tapplication_doautocreateclasses(amainformname);
});
     else
        $a(function() { $t.tapplication_dorun(amainformname);
});
  }
  catch($e)
  {
     $a(function() { $t.tapplication_dorun(amainformname);
});
     throw $e;
  }
};

// Thom
Mon, Aug 22 2016 8:26 AMPermanent Link

Trinione

<< Has anybody tried running this example in the latest 2.05b1 version? I am getting this error on startup: >>

<< "Peristent load error (Unable to get property 'addEventListener' of undefined or null reference >>

I am experiencing this as well.
Wed, Sep 7 2016 9:30 AMPermanent Link

A.Kyr

<< Has anybody tried running this example in the latest 2.05b1 version? I am getting this error on startup: >>

<< "Peristent load error (Unable to get property 'addEventListener' of undefined or null reference >>

Does anybody know if this issue has been solverd with latest released 2.05 version?
It is a stopper for my upgrade from v.2.04 to 2.05
Thanks in advance for any revelant info.

A.Kyriakos
Wed, Sep 7 2016 10:47 AMPermanent Link

Matthew Jones

thomh wrote:

> "Peristent load error (Unable to get property 'addEventListener' of
> undefined or null reference Line 29240"
>
> In this part of the code:

Is that really where it is happening, as I can't see any reference to
it. Running it in Chrome F12 debugger would be where I'd start.

--

Matthew Jones
Wed, Sep 7 2016 4:04 PMPermanent Link

Walter Matte

Tactical Business Corporation



Tim has fixed this and the current 2.05 b3 works fine.

Walter
Page 1 of 2Next Page
Jump to Page:  1 2
Image