Koozali.org: home of the SME Server

yappa is not uploading pictures

Marnix Schaab

yappa is not uploading pictures
« on: August 12, 2003, 01:44:08 AM »
I'm having trouble uploading pictures in my photoalbum (Yappa with ImageMagic). Everything works ok, but the uploading of pictures doesn't work. Other actions I can do (delete, rotate pictures etc.). I changed my upload max to 2,5 MB. However, even small pictures won't upload. It jams when the admin_module_upload.inc.php reaches the next if statement:

if (!copy($HTTP_POST_FILES['fupload'][tmp_name][$i], $dest)) {

$HTTP_POST_FILES['fupload'][tmp_name][$i] changes now and then: for example:
/tmp/phpe4McUr

$dest:
/home/e-smith/files/ibays/album/files/photos/Schaabbongers/CAMER003.JPG  

when I look in the temp directory the file phpe4McUr doesn't exist.

Does anybody have an idea, how to solve this problem?

Marnix

Marnix Schaab

Re: yappa is not uploading pictures
« Reply #1 on: August 12, 2003, 02:52:45 AM »
Already solved it. It was quite easy: the answer was right there between the FAQS on this site:

http://www.e-smith.org/faq.php3#6q12

normally: PHP applications running in i-bays can only access files within the same i-bay

workaround:
/sbin/e-smith/db accounts setprop your_i-bay_name PHPBaseDir /    
/sbin/e-smith/signal-event ibay-modify your_i-bay_name