When I upload a picture, it's fine. When a regular user uploads a picture, I get the following:
Warning: imagecreatefromjpeg(): '/home/sjones/public_html/eleanorclub/photo/uploads/144/DCP_0266.JPG' is not a valid JPEG file in /usr/home/sjones/public_html/eleanorclub/photo/image-inc.php on line 84
Unable to create image [/home/sjones/public_html/eleanorclub/photo/uploads/144/DCP_0266.JPG].
Please contact system administrator.
Specs:
PHP Version 4.3.10
System FreeBSD volt.excelsus.com 5.2.1-RELEASE-p6 FreeBSD 5.2.1-RELEASE-p6 #2: Fri May 7 10:30:40 EDT 2004
root@volt.excelsus.com:/usr/obj/usr/src/sys/VOLT i386
Build Date Feb 16 2005 08:05:41
Configure Command './configure' '--enable-versioning' '--enable-memory-limit' '--with-layout=GNU' '--with-zlib-dir=/usr' '--disable-all' '--with-regex=php' '--with-pear' '--enable-ctype' '--with-gd' '--enable-gd-native-ttf' '--enable-gd-jis-conv' '--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-xpm-dir=/usr/local' '--with-iconv-dir=/usr/local' '--with-mysql=/usr/local' '--with-openssl-dir=/usr' '--enable-overload' '--with-pcre-regex=yes' '--enable-posix' '--enable-session' '--enable-tokenizer' '--with-expat-dir=/usr/local' '--enable-xml' '--with-xmlrpc' '--with-zlib=yes' '--with-apxs2=/usr/local/sbin/apxs' '--with-snmp=/usr/local' '--enable-ucd-snmp-hack' '--prefix=/usr/local' 'i386-portbld-freebsd5.2.1'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/etc/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp, compress.zlib
GD info:
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
JIS-mapped Japanese Font Support enabled
The site used to work just fine - I didn't change anything and haven't heard back from my ISP.
My data and upload DIRs are 777.
Is this an ownership issue?
I don't understand why an admin can upload and a user cannot.
Thanks!
Steve