rejetto forum

Question for "upload-results" in 2.1c

Alons0 · 14 · 11214

0 Members and 2 Guests are viewing this topic.

Offline Alons0

  • Tireless poster
  • ****
    • Posts: 197
    • View Profile
    • Alons0's site
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 :(
« Last Edit: December 23, 2006, 05:24:57 PM by Alons0 »



Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
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)



Offline Alons0

  • Tireless poster
  • ****
    • Posts: 197
    • View Profile
    • Alons0's site
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%
« Last Edit: December 23, 2006, 03:46:43 PM by Alons0 »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
%item-name% is not encoded, not good for every character
in next build %item-url% will be available
published in few hours


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
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
« Last Edit: December 23, 2006, 03:50:28 PM by That_Stevens_Guy »


Offline Alons0

  • Tireless poster
  • ****
    • Posts: 197
    • View Profile
    • Alons0's site
%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
« Last Edit: December 23, 2006, 05:14:55 PM by Alons0 »


Offline Alons0

  • Tireless poster
  • ****
    • Posts: 197
    • View Profile
    • Alons0's site
%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?




Offline Alons0

  • Tireless poster
  • ****
    • Posts: 197
    • View Profile
    • Alons0's site
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
« Last Edit: December 23, 2006, 05:59:49 PM by Alons0 »