[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
file download  XML
Forum Index -> Development
Author Message
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Hi Björn,

is file download already supported?
If yes, how can I do it?
It would be wonderful, if I had some kind of link that I can pass an url....
(like CIS <ihtml> tag)


Frauke
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

Hi Frauke,

no, not yet supported.
But should be quite simple to add...: you pass the file as hexstring (same as heximage) + with a proposed filename. Then a popup comes up in which the user selects the directory + in which the user can save the file.

Anything additional in your mind?

Björn

Björn Müller, CaptainCasa GmbH
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Hi Björn,

no, nothing special on my mind,
but what on earth do you mean?
Pass the file where?

Frauke
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

...well, you have to pass the file to the client ;-)
Björn

Björn Müller, CaptainCasa GmbH
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Aha, wouldnt beleave it.....

Now seriously, can you give me an example please?

Frauke
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

..component would be something like:

Code:
 <t:download 
     text="Press here to download"
     filecontent="hexhexhexhexhexhex"
     filename="name.gif"
     autostart="true"/>
 


On the screen there is a download link. The user clicks the link and the download dialog opens.
If autostart is set to "true" then the dialog immediately is coming up, without the user clicking onto the link.

Björn

Björn Müller, CaptainCasa GmbH
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline


And when will it be available?

Frauke
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

I believe, we can make it until mid of next week. The component is generally usable, it makes sense to add it short term.

Björn

Björn Müller, CaptainCasa GmbH
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Hi Björn,

is it necessary to load the file as a hexstring before passing it to the download component?
It might be quite big: it is a zip file containing images.

Is it possible for your component to load it from the server file system?
So I only have to pass the source path?

In fact does it make any difference who of us reads the data, according to the amount of data kept in memory?
At least we should assure the String is only read once and will not be held multiple times.

Frauke
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

...well, you are right. The load should happen in case its required...

"You" need to provide a valid URL to the download file. The download will be done from this URL. A server file path, hmmm... I prefer the URL, of course.

Thank for your input!
Björn

Björn Müller, CaptainCasa GmbH
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Of course an URL, that would be fine!
I didn't really mean a path, was just thinking in terms of my testing scenario.

Have a nice weekend!

Frauke
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

Hi,

tomorrow's build will contain FILEDOWNLOADLINK - the equivalent to FILEUPLOADLINK.

Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team