rejetto forum
Software => HFS ~ HTTP File Server => Topic started 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 :(
-
I tried %item-link%, but it doesn's work :(
-
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)
-
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%
-
%item-name% is not encoded, not good for every character
in next build %item-url% will be available
published in few hours
-
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
-
%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
-
%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?
-
yes, try this version
http://www.rejetto.com/forum/index.php?topic=3791.msg1020427#msg1020427
you don't even need to edit the template
-
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).
-
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
-
Rejetto please help
-
try this one
http://www.rejetto.com/forum/index.php?topic=3791.msg1020456#msg1020456
-
Thank you man!!! You're the best ;D ;D ;D