rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: AYEHAN on March 11, 2009, 09:07:51 PM

Title: Forced Downloading
Post by: AYEHAN on March 11, 2009, 09:07:51 PM
hi,

i have set a file on login to download but user cancel it, is there a way that i can force them to download, and if download dosent start for that user he can't login to site?

or say get an error msg of my choice

i set this way .. after login redirect to "http://10.101.6.6:22335/easyshare-v4.exe" but there are only 3 downloads, and i want everyone to download it no download no access .. and if posisble on a given number of tries account will be blocked :D
Title: Re: Forced Downloading
Post by: MarkV on March 12, 2009, 01:12:06 AM
The business ethics want that you cannot force a user to accept a file of which he does not want.  ;)
Tell Microsoft.
Title: Re: Forced Downloading
Post by: AYEHAN on March 12, 2009, 03:55:03 AM
i own that business so its my right to forced them to download what i want .. if they dont wanna do that just remove the account from my site :P
Title: Re: Forced Downloading
Post by: rejetto on March 12, 2009, 06:52:42 PM
and what if they already have that file. they downloaded it last time.

then you should remember what account did download the file.
i think you can do it, it's just not easy.
you should use event [download completed] to set a flag in the user account "notes", using {.set table.}.
but at the moment there's no way to change account notes, i should add it.
Title: Re: Forced Downloading
Post by: AYEHAN on March 12, 2009, 07:52:41 PM
thx rejetto but even if they downloaded it, its not harmful to downloa again coz downloading this 2 MB file is take less then 2 seconds only .. so they can download and delete it ... but if the download record is possible it will be a nice option .. but main thing

how to make them download and ifthey cancel they cant login to site
Title: Re: Forced Downloading
Post by: rejetto on March 13, 2009, 04:03:55 PM
you could use a script like

[request]
if (folder is NOT the one where user are welcomed and the file is downloaded)
and (the user didn't download the file)
  disconnect
Title: Re: Forced Downloading
Post by: AYEHAN on March 13, 2009, 05:31:44 PM
i wish i could be a coder like you mars or other guys :/

if i will be a coder some day i will make the code from your hint .. but foir now you guyz are here to help me :D
Title: Re: Forced Downloading
Post by: rejetto on March 16, 2009, 10:42:52 AM
if you want someone to make the script for you, you should provide the missing information.

how does the user get the file, before he can access the rest of your server?