Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Sonny on January 25, 2003, 06:29:20 PM

Title: Web-fileupload on E-smith 5.5
Post by: Sonny on January 25, 2003, 06:29:20 PM
Hi there!

Is there anyone that knows how to make a web-upload form that works on the e-smith system...

I hav one i have moved to the e-smith server, it worked fine on the old server, but now it don't :-(

I have rememberd to change ALL the path's so it shoud be right....

---- part of script ---
if (is_uploaded_file($userfile)) {
  umask(033);
  copy($userfile, "/home/e-smith/files/ibays/golf_/html/upload/$filnavn");
}
?>
--- part of script ---

The onley thing that has changed since the moving of the script is the path in the copy(... line and it IS corect....

I have checked the php.ini file and the upload is set to "on" and the linit to "4M" so this seams to be alright...
Is there somting else i need to change somwhere in the e-smith to get this to work... ?
Title: Re: Web-fileupload on E-smith 5.5
Post by: Ray Mitchell on January 26, 2003, 07:32:55 AM
Have you enabled "Execution of dynamic content (CGI, PHP, SSI):" for the ibay ??

Regards
Ray Mitchell
Title: Re: Web-fileupload on E-smith 5.5
Post by: Sonny on January 26, 2003, 04:33:35 PM
hi!

Yes i have....
Title: Re: Web-fileupload on E-smith 5.5
Post by: Sonny on January 26, 2003, 05:22:27 PM
i have got it to work....

I found this FAQ
http://www.e-smith.org/faq.php3#6q12

And did as i said.. and now it works just fine!
Title: Re: Web-fileupload on E-smith 5.5
Post by: dave on February 07, 2003, 01:33:20 AM
Sonny,
Did you use the more restrictive '/home/e-smith/files/' ?
or ??
if we limit it to one IB, could that not prevent other IBs?

Note that the PHPBaseDir argument can be more restrictive than the example shown above. For example PHPBaseDir can also be '/home/e-smith/files/'.

I do not see why this says "more restrictive", it would seem to say you can access any directory after '/home/e-smith/files/'