rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Alons0 on December 23, 2006, 02:04:06 PM

Title: Question for "upload-results" in 2.1c
Post by: Alons0 on December 23, 2006, 02:04:06 PM
When my users successfully upload files, they see the page where is displayed "The file is succesfully uploaded. Back to the folder..."
And I want when the users upload file after that in "page of results" to display the link of the uploaded file. What to paste in section "upload-results" or in "upload-success"?

P.S.: Sorry for my poor English :(
Title: Re: Question for "upload-results" in 2.1c
Post by: Alons0 on December 23, 2006, 03:34:09 PM
I tried %item-link%, but it doesn's work :(
Title: Re: Question for "upload-results" in 2.1c
Post by: TSG on December 23, 2006, 03:38:18 PM
So you want this section allow the user to be able to open the file? I found that this here works quite nicely. Using the target to open a new window gives the user the ability to still return to the upload section of your server, without the use of the back button.

As you can see it goes into this section   :D

[upload-success]
<li><b>SUCCESS!</b> Uploaded: <a href="%item-name%" target=_blank>%item-name%</a> --- %item-size% (Speed: %speed% KB/s)

Title: Re: Question for "upload-results" in 2.1c
Post by: Alons0 on December 23, 2006, 03:43:03 PM
So you want this section allow the user to be able to open the file? I found that this here works quite nicely. Using the target to open a new window gives the user the ability to still return to the upload section of your server, without the use of the back button.

As you can see it goes into this section   :D

[upload-success]
<li><b>SUCCESS!</b> Uploaded: <a href="%item-name%" target=_blank>%item-name%</a> --- %item-size% (Speed: %speed% KB/s)
But this shows link to file in my computer, no in my site :(
I tried with %item-url%, but it displays ex.: http://10.6.13.25/Upload/%item-url%
Title: Re: Question for "upload-results" in 2.1c
Post by: rejetto on December 23, 2006, 03:46:27 PM
%item-name% is not encoded, not good for every character
in next build %item-url% will be available
published in few hours
Title: Re: Question for "upload-results" in 2.1c
Post by: TSG on December 23, 2006, 03:47:44 PM
oh ok nice, i did try this, the first time, but i found it did not work... didn't realise it wasn't available yet in HFS :D
Title: Re: Question for "upload-results" in 2.1c
Post by: Alons0 on December 23, 2006, 03:49:49 PM
%item-name% is not encoded, not good for every character
in next build %item-url% will be available
published in few hours
I'll wait  ;D ;D ;D
Title: Re: Question for "upload-results" in 2.1c
Post by: Alons0 on December 23, 2006, 05:13:57 PM
%item-url% will works in the next beta version. OK. If I upload for ex. 2-3 files, can the command displays the links of the all files?
Title: Re: Question for "upload-results" in 2.1c
Post by: rejetto on December 23, 2006, 05:17:08 PM
yes, try this version
http://www.rejetto.com/forum/index.php?topic=3791.msg1020427#msg1020427

you don't even need to edit the template
Title: Re: Question for "upload-results" in 2.1c
Post by: Alons0 on December 23, 2006, 05:21:03 PM
yes, try this version
http://www.rejetto.com/forum/index.php?topic=3791.msg1020427#msg1020427

you don't even need to edit the template
Don't worry. I use damn template(edited of course).
Title: Re: Question for "upload-results" in 2.1c
Post by: Alons0 on December 23, 2006, 05:44:05 PM
Hey rejetto this code shows wrong link
<li><a href='%item-url%'>%item-name%</a>: <b>OK</b> --- %item-size%  (Speed %speed% KB/s)
Ex.: It displays the link
http://10.6.13.25/Upload/E%3A%5CRocky.Balboa.PROPER.DVDSCR.XViD-mVs%5Cmvs-rocky.nfo
The true link is http://10.6.13.25/Upload/mvs-rocky.nfo
And in the wrong link after "10.6.13.25/Upload/" it displays route to file in my computer(E:\Rocky.Balboa.PROPER.DVDSCR.XViD-mVs). Can you fix this? I think the problem is in the HFS
Title: Re: Question for "upload-results" in 2.1c
Post by: Alons0 on December 23, 2006, 08:59:03 PM
Rejetto please help
Title: Re: Question for "upload-results" in 2.1c
Post by: rejetto on December 23, 2006, 09:04:52 PM
try this one
http://www.rejetto.com/forum/index.php?topic=3791.msg1020456#msg1020456
Title: Re: Question for "upload-results" in 2.1c
Post by: Alons0 on December 23, 2006, 09:12:25 PM
Thank you man!!! You're the best ;D ;D ;D