Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: bajef on May 27, 2004, 06:25:09 AM

Title: upload image (tmp)
Post by: bajef on May 27, 2004, 06:25:09 AM
using php cannot upload image ... any one have solution for this?
Title: upload image (tmp)
Post by: Boris on May 27, 2004, 06:34:07 AM
You need to provide more details, but first check the size of the image. Default PHP max upload file size is 2Mb. Settings in the /etc/php.ini modify via templates.
Title: upload
Post by: bajef on May 28, 2004, 04:16:02 AM
the problem is i'm using php to create image from temp and as i know we can't access files outside from ibays. Any solution for this?
Title: upload image (tmp)
Post by: Anonymous on May 28, 2004, 05:36:35 AM
Try this:

Login as root or su:

#/sbin/e-smith/db accounts setprop IBAYNAME PHPBaseDir /
#/sbin/e-smith/signal-event ibay-modify IBAYNAME

Please note that there is a "/" in the end of the first command. It should work. Good Luck!
Title: upload image (tmp)
Post by: Kruuse on May 30, 2004, 12:57:05 PM
(Using 5.6U6)

I upgraded php to 4.3.6 and that caused a lot of problems for my ibays. I had to extend that basedir line to "/:/home/e-smith/ibays/ibay-name/:/tmp/:/usr/bin/:/usr/share/pear/"

I have no idea why this happened but it was a bit annoying. Pear is still causing a few problems but I can live without it for now. On the other hand, it is a more secure way of doing it as you have to more explicit in your definitions of allowable directories.