Re: [us...@httpd] Very Very strange problem in opensuse 11.1, file uploading reports 'not an image file'

2010-01-18 Thread Frank Gingras
J. Bakshi wrote: On Mon, 18 Jan 2010 12:03:36 +0100 "Marcin 'Rambo' Roguski" wrote: OP posted the script that "checks" MIME type of POST attachment, but I have a hunch the web server doesn't have write access to the temporary upload directory specified in php.ini. Hints to that are that php

Re: [us...@httpd] Very Very strange problem in opensuse 11.1, file uploading reports 'not an image file'

2010-01-18 Thread J. Bakshi
On Mon, 18 Jan 2010 12:03:36 +0100 "Marcin 'Rambo' Roguski" wrote: > > OP posted the script that "checks" MIME type of POST attachment, but I > have a hunch the web server doesn't have write access to the temporary > upload directory specified in php.ini. Hints to that are that php > isn't setti

Re: [us...@httpd] Very Very strange problem in opensuse 11.1, file uploading reports "not an image file"

2010-01-18 Thread J. Bakshi
On Mon, 18 Jan 2010 10:51:39 +0100 Krist van Besien wrote: > On Sat, Jan 16, 2010 at 5:18 PM, J. Bakshi > wrote: > > I can see the files are transferred but after > > that it simply reports "Not an Image file". > > What is "it" here. Is this error message logged in a logfile > somewhere, or is

Re: [us...@httpd] Very Very strange problem in opensuse 11.1, file uploading reports "not an image file"

2010-01-18 Thread J. Bakshi
On Sat, 16 Jan 2010 19:37:36 +0100 Marcin 'Rambo' Roguski wrote: > What about temporary files? Are they uploaded or not? > From what you're writing, neither size or type are > identified (should be set after a successful completion > of POST request). > > Can you add > > print_r($GLOBALS['HTT

Re: [us...@httpd] Very Very strange problem in opensuse 11.1, file uploading reports 'not an image file'

2010-01-18 Thread Marcin 'Rambo' Roguski
Dnia 18 Stycznia 2010, 10:51, Pn, Krist van Besien napisaƂ(a): > On Sat, Jan 16, 2010 at 5:18 PM, J. Bakshi > wrote: > >> I can see the files are transferred but after >> that it simply reports "Not an Image file". > > What is "it" here. Is this error message logged in a logfile > somewhere, or i

Re: [us...@httpd] Very Very strange problem in opensuse 11.1, file uploading reports "not an image file"

2010-01-18 Thread Krist van Besien
On Sat, Jan 16, 2010 at 5:18 PM, J. Bakshi wrote: > I can see the files are transferred but after > that it simply reports "Not an Image file". What is "it" here. Is this error message logged in a logfile somewhere, or is it displayed in your webbrowser? Krist -- krist.vanbes...@gmail.com kr..

Re: [us...@httpd] Very Very strange problem in opensuse 11.1, file uploading reports "not an image file"

2010-01-17 Thread John Iliffe
On Sun, 2010-17-01 at 11:30 +0530, J. Bakshi wrote: > On Sat, 16 Jan 2010 13:35:37 -0500 > John Iliffe wrote: > > > There are a couple of choices to debug here. > > > > First, the code you supplied is comparing the mime-type parameters > > obtained from the call to: > > > > $upload_file_type =

Re: [us...@httpd] Very Very strange problem in opensuse 11.1, file uploading reports "not an image file"

2010-01-16 Thread J. Bakshi
On Sat, 16 Jan 2010 13:35:37 -0500 John Iliffe wrote: > There are a couple of choices to debug here. > > First, the code you supplied is comparing the mime-type parameters > obtained from the call to: > > $upload_file_type = $GLOBALS > ['HTTP_POST_FILES']['profile_image']['type']; > > So, fir

Re: [us...@httpd] Very Very strange problem in opensuse 11.1, file uploading reports "not an image file"

2010-01-16 Thread J. Bakshi
On Sat, 16 Jan 2010 19:37:36 +0100 Marcin 'Rambo' Roguski wrote: > > But no files are uploaded there at all. > > What about temporary files? Are they uploaded or not? > From what you're writing, neither size or type are > identified (should be set after a successful completion > of POST request)

Re: [us...@httpd] Very Very strange problem in opensuse 11.1, file uploading reports "not an image file"

2010-01-16 Thread Marcin 'Rambo' Roguski
> But no files are uploaded there at all. What about temporary files? Are they uploaded or not? >From what you're writing, neither size or type are identified (should be set after a successful completion of POST request). Can you add print_r($GLOBALS['HTTP_POST_FILES']['profile_image']) in the

Re: [us...@httpd] Very Very strange problem in opensuse 11.1, file uploading reports "not an image file"

2010-01-16 Thread John Iliffe
There are a couple of choices to debug here. First, the code you supplied is comparing the mime-type parameters obtained from the call to: $upload_file_type = $GLOBALS ['HTTP_POST_FILES']['profile_image']['type']; So, first I would echo $upload_file_type and see what it is actually getting.

Re: [us...@httpd] Very Very strange problem in opensuse 11.1, file uploading reports "not an image file"

2010-01-16 Thread J. Bakshi
On Sat, 16 Jan 2010 18:26:18 +0100 Marcin 'Rambo' Roguski wrote: > > the files are not uploaded in the folder where they suppose > > to be. > > Please explain. So they ARE uploaded but in the wrong path? > Or there's no folder? In latter case, the script should > create the said folder by itse

Re: [us...@httpd] Very Very strange problem in opensuse 11.1, file uploading reports "not an image file"

2010-01-16 Thread Marcin 'Rambo' Roguski
> the files are not uploaded in the folder where they suppose > to be. Please explain. So they ARE uploaded but in the wrong path? Or there's no folder? In latter case, the script should create the said folder by itself, or you need to create it manually. -- No guest is so welcome in a friend'

Re: [us...@httpd] Very Very strange problem in opensuse 11.1, file uploading reports "not an image file"

2010-01-16 Thread J. Bakshi
On Sat, 16 Jan 2010 17:31:28 +0100 Marcin 'Rambo' Roguski wrote: > On Sat, 16 Jan 2010 21:48:15 +0530 > "J. Bakshi" wrote: > > > Dear list, > > > that it simply reports "Not an Image file". And this is happening > > with all files even with image ( jpg, bmp etc..) and with as small > > as 1KB

Re: [us...@httpd] Very Very strange problem in opensuse 11.1, file uploading reports "not an image file"

2010-01-16 Thread Marcin 'Rambo' Roguski
On Sat, 16 Jan 2010 21:48:15 +0530 "J. Bakshi" wrote: > Dear list, > that it simply reports "Not an Image file". And this is happening with > all files even with image ( jpg, bmp etc..) and with as small as 1KB > and as big as 500KB. I have checked the log with "Loglevel debug" and > there is no

[us...@httpd] Very Very strange problem in opensuse 11.1, file uploading reports "not an image file"

2010-01-16 Thread J. Bakshi
Dear list, I am banging my head with a strange problem I have never never and never seen before. A site is functional and running on a debian lenny server. The site provides a file upload section and files are uploaded successfully even with 10MB size. I have migrated the site to an opensuse 11.1