Page 1 of 1

download files from a webserver using downloadlinks

Posted: Thu Mar 27, 2014 5:07 pm
by spacewalker
Hello,

I need an idea about how to create an application that would allow a client to download files using a webbrowser.

So the client sends a downloadlink like this to my "webserver" :
"http://myPBWebServer/file.zip"

The files would be big, 1-4Gb

I think that I need a PB webserver that can send such a file (or multiple files if possible) in chunks to the client's browser.
Maybe such webserver already exists somewhere ("Atomic Web Server" doesn't work because it doesnt send the data in chunks).
Or maybe it's better to try with SpiderBasic... ?

Heinz

Re: download files from a webserver using downloadlinks

Posted: Thu Mar 27, 2014 8:34 pm
by the.weavster

Re: download files from a webserver using downloadlinks

Posted: Sun Mar 30, 2014 9:57 pm
by JackWebb
I have never tried with a file of that size but, are you saying something like this doesn't work for you?

Code: Select all

<a href="/downloads/file.zip"><img border="0" src="img/downloadbutton.png"></a>

Re: download files from a webserver using downloadlinks

Posted: Mon Mar 31, 2014 3:59 pm
by spacewalker
JackWebb wrote:I have never tried with a file of that size but, are you saying something like this doesn't work for you?

Code: Select all

<a href="/downloads/file.zip"><img border="0" src="img/downloadbutton.png"></a>
well, I guess it would work for me - if I had a purebasic webserver that would process this code (with file.zip >1GB) :-)

I think all I need is a webserver,or to be more exact : a kind of filesharing webengine

Of course I could use a 3rd party, fully-fledged webserver like IIS, Apache or what "the.weavster" suggested.

However, I'd prefer to have a self-contained Purebasic application if possible.

And if I have to use a 3rd party webserver then I think I'll go with mongoose... - it's just one executable that I have to start... and I have an option to use it as embedded webserver in my PB app...(http://cesanta.com/libmongoose.shtml) , well at least theoretically because unfortunately I have no idea :
a) how to make a static .lib file that I could link to my windows PB app (I have not idea about C\C++ ...)
b) how I'd work with that .lib once I have linked it to my PB code ... so if somebody knows this: please let me know :-)

Heinz