Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: dtech on September 27, 2010, 06:48:07 PM

Title: File repository?
Post by: dtech 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!
Title: Re: File repository?
Post by: Stefano on September 27, 2010, 07:08:55 PM
dtech, a little search in the forums and in the wiki give me this (http://wiki.contribs.org/Webshare) link
and here (http://forums.contribs.org/index.php/topic,46399.msg227523.html#msg227523) 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
Title: Re: File repository?
Post by: cactus 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
Title: Re: File repository?
Post by: janet 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
Title: Re: File repository?
Post by: Stefano 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 :-)
Title: Re: File repository?
Post by: dtech 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?
Title: Re: File repository?
Post by: raem on September 28, 2010, 02:28:22 PM
posted in error
Title: Re: File repository?
Post by: raem on September 28, 2010, 02:58:56 PM
Stefano

Quote
this[/url] link
and here (http://forums.contribs.org/index.php/topic,46399.msg227523.html#msg227523) 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.
Title: Re: File repository?
Post by: Stefano 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
Title: Re: File repository?
Post by: dtech 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 (http://bugs.contribs.org/show_bug.cgi?id=6256)