Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: ruipedroca on January 16, 2008, 02:03:25 AM

Title: Webshare question
Post by: ruipedroca on January 16, 2008, 02:03:25 AM
Hi,
I'm running on sme server 7.2 and i've installed webshare via rpm and it works fine.
My question is: is there a way of uploading more than 4 files at once?

I've been looking for webshare documentation but found almost nothing, in fact most i've found about webshare was in this forum..


Thanks in advance
Title: Re: Webshare question
Post by: EdelingF on January 16, 2008, 10:39:42 AM
Login your server with f.i. Putty and use MC to copy files in the webshare.
I've copied about 20G in a webshare that way and it works ok. Don't know where exactly, but just go to opt/webshare/yourwebshare and I think you'll find your way yourself.
Title: Re: Webshare question
Post by: dmay on January 16, 2008, 04:09:01 PM
just go to opt/webshare/yourwebshare and I think you'll find your way yourself.

Just one more dir completes the mystery:

/opt/webshare/yourwebshare/files/

However, remember to reset the file/directory ownership rights of all files/dirs copied to www:www

Darrell
Title: Re: Webshare question
Post by: imcintyre on January 16, 2008, 06:13:27 PM
I think using MC works for the admin but what about the client side of things. How does someone upload more than four files from the internet?

Instead of MC,  WINSCP might be a little more userfriendly
Title: Re: Webshare question
Post by: william_syd on January 17, 2008, 02:16:58 AM
Hi,
I'm running on sme server 7.2 and i've installed webshare via rpm and it works fine.
My question is: is there a way of uploading more than 4 files at once?

I've been looking for webshare documentation but found almost nothing, in fact most i've found about webshare was in this forum..


Thanks in advance


I don't have it installed, but by pulling the RPM apart it appears to be based on phpfm (http://phpfm.sourceforge.net/)

Second, I'm not a php person, but have a look in /opt/webshare-tools/phpfm/incl/upload.inc.php

It's possible that the line for($i=0;$i<=3;$i++) is where you could make a change to increase the number of "simultaneous" uploads.

Now I'm off to have a play.

Edit:

Or this bit in the same file..
Code: [Select]
print "<table class='upload'>";
     print "<tr><td>$StrFirstFile</td><td><input type='file' name='userfile[]' size=30></td></tr>";
     print "<tr><td>$StrSecondFile</td><td><input type='file' name='userfile[]' size=30></td></tr>";
     print "<tr><td>$StrThirdFile</td><td><input type='file' name='userfile[]' size=30></td></tr>";
     print "<tr><td>$StrFourthFile</td><td><input type='file' name='userfile[]' size=30></td></tr>";
    print "</table>";

Edit:

Created a webshare named 'test'

Edited /opt/webshare/test/incl/upload.inc.php and /opt/webshare/test/lang/english.inc.php

Before...

(http://www.magicwilly.webhostingpal.com/ContribsForumPictures/webshare/4files.png)


After...

(http://www.magicwilly.webhostingpal.com/ContribsForumPictures/webshare/9files.png)

Title: Re: Webshare question
Post by: imcintyre on January 17, 2008, 12:52:37 PM
 8)  Thx
Title: Re: Webshare question
Post by: ruipedroca on January 17, 2008, 08:33:11 PM
Thanks EdelingF, dmay, imcintyre and especially william_syd for having the time and patience to try and then post the screenshots!  :-D

It's because people like you that SME SERVER is such a great server!

Regards,
Rui Pedro
Title: Re: Webshare question
Post by: imcintyre on January 18, 2008, 12:29:56 AM
William_Syd
How did you "pull the rpm apart"?
Title: Re: Webshare question
Post by: william_syd on January 18, 2008, 08:18:00 AM
William_Syd
How did you "pull the rpm apart"?

Under windows, with 7zip.

http://www.7-zip.org/

Title: Re: Webshare question
Post by: Boris on January 18, 2008, 07:25:10 PM
There are couple of advanced alternatives to webshare, that allow more control over the file structure. Both free to use and work very well with SME.
One called FileExecutive, another called Oliver. You may want to check them out.
Boris.
Title: Re: Webshare question
Post by: imcintyre on January 18, 2008, 11:14:27 PM
It's my understanding from searching the web that webshare became oliver.
Title: Re: Webshare question
Post by: william_syd on January 19, 2008, 02:24:26 AM
It's my understanding from searching the web that webshare became oliver.

I'm not sure if webshare is webshare .... :-?

The one on sme appears to be phpfm which starts life here (http://phpfm.zalon.dk/) (which is now inactive). It now appears to be offered commercially by this mob (http://www.biglickmedia.com/products/File_Manager/) .

Some url's for the others. Check the screenshots and demos where possible.

FileExecutive (http://fileexecutive.sourceforge.net/)
Oliver (http://oliver.sourceforge.net/)
Webshare (http://www.webshare.fr/)
phpFM (http://phpfm.sourceforge.net/)