Koozali.org: home of the SME Server

File repository?

Offline dtech

  • ***
  • 70
  • +0/-0
File repository?
« on: September 27, 2010, 06:48:07 PM »
Hi All,

I'm looking for a file repository contrib or solution. I want to use an ibay for file storage and then have a browser accessible interface for users to upload and download files (like box.net or mediafire.com). I'd like it to be a forced https connection too.

I've looked at a few PHP file managers things that are single index.php files,  I place them in the ibay's html directory, and the downloading part works fine, but the uploading part doesn't work in any of them and I assume this is a permissions issue.

Any ideas?

Thanks in advance!

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: File repository?
« Reply #1 on: September 27, 2010, 07:08:55 PM »
dtech, a little search in the forums and in the wiki give me this link
and here you can find the way to use an ibay and SME's users with webshare (it's in italian and it's a PoC, tested a bit..)

HTH

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: File repository?
« Reply #2 on: September 27, 2010, 07:21:09 PM »
You can also install the mod_dav contrib and convert your ibays to DAV enabled ibays, see http://wiki.contribs.org/DAV
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: File repository?
« Reply #3 on: September 28, 2010, 12:32:07 AM »
dtech

...or you vould install the webshare contrib and create multiple private webshare upload sites, although by default files are saved in /opt

See the Howto pages
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: File repository?
« Reply #4 on: September 28, 2010, 12:36:40 AM »
dtech

...or you vould install the webshare contrib and create multiple private webshare upload sites, although by default files are saved in /opt

See the Howto pages

mary, I already suggested smeserver-webshare to OP.. and a custom template (plus some new db values) to use it with SME's users :-)

Offline dtech

  • ***
  • 70
  • +0/-0
Re: File repository?
« Reply #5 on: September 28, 2010, 01:09:00 AM »
Thanks Stefano, I decided to go with DAV. I used to use the webshares contrib for other purposes and never realized it could do uploads too.

So, using DAV I see that I can only connect via https, and that authentication is done using an SME username and password. I do not have the ibay password protected, and am wondering if it should be. Thoughts?

Offline raem

  • *
  • 3,972
  • +4/-0
Re: File repository?
« Reply #6 on: September 28, 2010, 02:28:22 PM »
posted in error
...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: File repository?
« Reply #7 on: September 28, 2010, 02:58:56 PM »
Stefano

Quote
this[/url] link
and here you can find the way to use an ibay and SME's users with webshare (it's in italian and it's a PoC, tested a bit..)

Based on that forum post, I have added this to the wiki
http://wiki.contribs.org/Webshare#Using_with_ibays_.26_SME_users
Would you please check my work for correctness & understandability as I don't speak Italian.

Thanks.
...

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: File repository?
« Reply #8 on: September 28, 2010, 08:51:00 PM »
Stefano

Based on that forum post, I have added this to the wiki
http://wiki.contribs.org/Webshare#Using_with_ibays_.26_SME_users
Would you please check my work for correctness & understandability as I don't speak Italian.

Thanks.

done some minor editing, thank you Ray

Offline dtech

  • ***
  • 70
  • +0/-0
Re: File repository?
« Reply #9 on: October 02, 2010, 08:38:34 PM »
Is anyone maintaining the Web Shares contrib anymore? Will it be obseleted by SME 8? I ask because I've been using it and have found a bug and some spelling/grammar issues.

The bug: Firefox doesn't handle files with spaces in the name, everything after the first whitespace is truncated, so this change needs to be applied to the /opt/webshare-tools/phpfm/incl/libfile.php (and any existing instances in web shares that have been created already):

Original, line 42
Code: [Select]
header("Content-Disposition: attachment; filename=$filename");

New
Code: [Select]
header("Content-Disposition: attachment; filename=\"$filename\"");

Submitted to bugzilla, http://bugs.contribs.org/show_bug.cgi?id=6256