rejetto forum
May 22, 2012, 06:17:05 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: A question  (Read 1697 times)
0 Members and 2 Guests are viewing this topic.
carpediem
Guest
« on: August 12, 2004, 06:31:58 AM »

After using HFS for a while I've come to miss a "function" that would be very handy for me at least. Say I want to stop sharing a file, but at the same time I want to keep the server up.  Instead of getting an error message, it would be nice if I could redirect them to another file of my choice.

Example
I have a file called file01.exe that I'm sharing. I don't want to share it anymore, so right clicking on the file could give me the option to "stop sharing and redirect". In the option for that I could just point to another file/url of my choice. Say a "info.htm" where I maybe explain why the file is no longer there and maybe even re-direct to an off-site url that holds a mirror of the file.
Logged
Corwin
Regular poster
**
Offline Offline

Posts: 20


View Profile
« Reply #1 on: August 12, 2004, 02:25:10 PM »

You can unshare a file any time without stopping the server.  As soon as the user refreshes the browser, the file will be removed from the listing.   The only time they will get an error is if they try to download from an outdated listing without refreshing.

If you don't like the standard  File Not Found error message you can customize it by editing the template file.   Or you can create a custom  "File has been removed" text or html file, and put it in place of the removed file.
Logged
Rafi
Insane poster
*****
Offline Offline

Posts: 452


View Profile
« Reply #2 on: August 12, 2004, 02:58:58 PM »

right-click the file,  Menu->access-for-users->NONE
Logged

Corwin
Regular poster
**
Offline Offline

Posts: 20


View Profile
« Reply #3 on: August 12, 2004, 03:15:23 PM »

Quote from: "Rafi"
right-click the file,  Menu->access-for-users->NONE


That doesn't  unshare it, it unprotects it so it is shared for everybody.   I suppose you could create a user called NoAccess and password protect the file --  right click,  Menu -> set user access.


-- bug report -->  I tried password protecting a file, and when I tried to download the file I was prompted for a password.    The password prompt referenced the file by the comment instead of by the file name.
Logged
Anonymous
Guest
« Reply #4 on: August 20, 2004, 03:37:13 PM »

Quote from: "Corwin"
You can unshare a file any time without stopping the server.  As soon as the user refreshes the browser, the file will be removed from the listing.   The only time they will get an error is if they try to download from an outdated listing without refreshing.

If you don't like the standard  File Not Found error message you can customize it by editing the template file.   Or you can create a custom  "File has been removed" text or html file, and put it in place of the removed file.

First paragraph doesn't do what I want.

Second paragraph isn't possible, is it? If i have a file.exe shared, and want to remove it from the share but at the same time give a notice to the user why it's not there anymore, how can i "replace" it as you say? If that user clicks a direct link to that exe he will get the default "file not found" page, right? I can't give the user a custom message about why that file isn't there. That's why i would want to "unshare it and redirect to a file or address of my choice".
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11824


View Profile
« Reply #5 on: August 23, 2004, 02:35:47 PM »

my advice:
remove file01.exe
create a new virtual folder called "file01.exe"
insert there an index.html with your message.
right-click on the folder and click Default file mask.
set it as index.html
Logged
rejetto forum
« Reply #5 on: August 23, 2004, 02:35:47 PM »

Do you like this software? Consider even $2
 Logged
Anonymous
Guest
« Reply #6 on: August 23, 2004, 08:16:50 PM »

Quote from: "Anonymous"
First paragraph doesn't do what I want.

Second paragraph isn't possible, is it? If i have a file.exe shared, and want to remove it from the share but at the same time give a notice to the user why it's not there anymore, how can i "replace" it as you say? If that user clicks a direct link to that exe he will get the default "file not found" page, right? I can't give the user a custom message about why that file isn't there. That's why i would want to "unshare it and redirect to a file or address of my choice".

First paragraph was just a response to wanting to stop sharing a file and still keep the server up.

Second paragraph was intended more along the lines of inserting a placekeeper file.  I wasn't thinking of direct links when I posted it, it wouldn't work for that.

Use Rejetto's advice above, it will do what you want.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 18, 2012, 06:04:50 PM