Koozali.org: home of the SME Server

upload image (tmp)

bajef

upload image (tmp)
« on: May 27, 2004, 06:25:09 AM »
using php cannot upload image ... any one have solution for this?

Offline Boris

  • *
  • 783
  • +0/-0
upload image (tmp)
« Reply #1 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.
...

bajef

upload
« Reply #2 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?

Anonymous

upload image (tmp)
« Reply #3 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!

Kruuse

upload image (tmp)
« Reply #4 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.