RE: [PHP] Cannot upload JPEG only

2002-04-04 Thread Carl Schmidt

I think i've solved the madness.  In the php docs, it states:


Send this file: 



With the MAX_FILE_SIZE _before_ the filename to upload.  Maybe I've missed
a post somwhere that already suggested this, but i tried rearranging the
tag order, assuming that since this is just a suggestion to the browser,
that perhaps moving or removing it might help.  WOuldn't ya know it,
butwhen i have the order like so:



The upload works just fine.  I did read one post on php.net pertaing to
this subject that stated:
"I am using PHP 4.1.1 on Apache / Linux. The upload procedure _requires_
that you have a line that sets the maximum file size in your form:

"

So perhaps it may fail if I move these pages to a different server/php
combo.

Carl


On Thu, 4 Apr 2002, Martin Towell wrote:

> >
> https://skunkWerkz.hosting-advantage.com/superSecretTesting/updateAdmin/MP3_
> Add.php
>
> not very secret, now that you've told everyone :)
>
> anyway - do you have any .htaccess directives in one directory, you don't
> have in the other?
>
>
> -Original Message-
> From: Carl Schmidt [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 04, 2002 3:39 PM
> To: Miguel Cruz
> Cc: Bob; [EMAIL PROTECTED]
> Subject: Re: [PHP] Cannot upload JPEG only
>
>
> And here's the really wacky part i just found out. I have a page in prod
> that uploads MP3s.
> Part off what it does is upload the file, examine its' type , and then
> discard the file if it's not the type expected. Assuming the web host was
> set to not allow uploads of jpg and gif, the MP3 page wouldve errored out
> , saying it couldn't upload the file;  but the weird thing is that it
> _can_ upload jpgs and gifs, but needless to say discards them because
> they are the wrong type.
>
> I tried the same MP3 page in developmen, but it exhibits the same behavior
> as the image upload page in that it won't even upload a jpeg or gif.  This
> leads me to bleieve I've got some sort of configuration issue here.
> Both eprod and dev are on the same box.  Here's the paths to the 2 pages:
>
> Prod:
> https://skunkWerkz.hosting-advantage.com/updateAdmin/MP3_Add.php
> Dev:
> https://skunkWerkz.hosting-advantage.com/superSecretTesting/updateAdmin/MP3_
> Add.php
>
> Carl
>
>
>
> On Wed, 3 Apr 2002, Miguel Cruz wrote:
>
> > On Wed, 3 Apr 2002, Carl Schmidt wrote:
> > > Thank you for the code snippets.  Unfortunately the problem is that I
> > > can'tget far enough to process the file.  When the php script that
> > > supposed to process the file tests with is_uploaded_file, it fails.  In
> > > addtion, the $HTTP_POST_FILE['userfile']['tmp_name']=none.  So i can't
> > > process anything since, as far as php is concerned, it appears nothing
> is
> > > uploaded.
> >
> > What happens if you take a file that works, and rename it so the extension
> > is .GIF, and try uploading it? I mean, obviously it won't be a valid
> > image, but will it transfer and show up?
> >
> > miguel
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>








-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Cannot upload JPEG only

2002-04-03 Thread Martin Towell

The reason I asked about the .htaccess files is because I thought that
_maybe_ there might be something in prod site that allows jpegs and gifs to
be uploaded, or the other way 'round, on the dev site that stops the
uploading.

It's a shot in the dark but worth a look.

Martin


-Original Message-
From: Carl Schmidt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 4:06 PM
To: Martin Towell
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Cannot upload JPEG only



>
https://skunkWerkz.hosting-advantage.com/superSecretTesting/updateAdmin/MP3_
> Add.php
>
> not very secret, now that you've told everyone :)
Yep, I was waitin' for that one  :-)


>
> anyway - do you have any .htaccess directives in one directory, you don't
> have in the other?
>

I do have separate .htaccess files for 2 separate sections.  There is one
controlling the "devArea" realm, and it is at:
https://skunkWerkz.hosting-advantage.com/superSecretTesting/

The second one I have is at:
https://skunkWerkz.hosting-advantage.com/updateAdmin
to control the "administration" realm

There is some other info, related to this that may be of use:
The real name name of the site is www.imperialthrust.com.  Since this is
just a rock band's web site, I didn't need my own certificate for
ecommerce, but I did want to use the web hosts shared cert so I could
secure a section of the site for administration.  I was given the 3rd
level domain alias: skunkWerkz.hosting-advantage.com that apparently
bounces me through their authentication server.  For a while the web site
was not registered, so I've been connecting directly to
skunkWerkz.hosting-advantage.com
directly.
But I've been running some tests and it looks as if when I go
through
https://www.imperialthrust.com/superSecretTesting/updateAdmin/MP3_Add.php,
for some strange reason, jpegs and gifs are now able to be uploaded.  It
appears to be working, but I sure wish I knew why

Carl

>
> -Original Message-
> From: Carl Schmidt [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 04, 2002 3:39 PM
> To: Miguel Cruz
> Cc: Bob; [EMAIL PROTECTED]
> Subject: Re: [PHP] Cannot upload JPEG only
>
>
> And here's the really wacky part i just found out. I have a page in prod
> that uploads MP3s.
> Part off what it does is upload the file, examine its' type , and then
> discard the file if it's not the type expected. Assuming the web host was
> set to not allow uploads of jpg and gif, the MP3 page wouldve errored out
> , saying it couldn't upload the file;  but the weird thing is that it
> _can_ upload jpgs and gifs, but needless to say discards them because
> they are the wrong type.
>
> I tried the same MP3 page in developmen, but it exhibits the same behavior
> as the image upload page in that it won't even upload a jpeg or gif.  This
> leads me to bleieve I've got some sort of configuration issue here.
> Both eprod and dev are on the same box.  Here's the paths to the 2 pages:
>
> Prod:
> https://skunkWerkz.hosting-advantage.com/updateAdmin/MP3_Add.php
> Dev:
>
https://skunkWerkz.hosting-advantage.com/superSecretTesting/updateAdmin/MP3_
> Add.php
>
> Carl
>
>
>
> On Wed, 3 Apr 2002, Miguel Cruz wrote:
>
> > On Wed, 3 Apr 2002, Carl Schmidt wrote:
> > > Thank you for the code snippets.  Unfortunately the problem is that I
> > > can'tget far enough to process the file.  When the php script that
> > > supposed to process the file tests with is_uploaded_file, it fails.
In
> > > addtion, the $HTTP_POST_FILE['userfile']['tmp_name']=none.  So i can't
> > > process anything since, as far as php is concerned, it appears nothing
> is
> > > uploaded.
> >
> > What happens if you take a file that works, and rename it so the
extension
> > is .GIF, and try uploading it? I mean, obviously it won't be a valid
> > image, but will it transfer and show up?
> >
> > miguel
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Cannot upload JPEG only

2002-04-03 Thread Carl Schmidt

Nevermind, I spoke too soon.

Carl




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Cannot upload JPEG only

2002-04-03 Thread Carl Schmidt


> https://skunkWerkz.hosting-advantage.com/superSecretTesting/updateAdmin/MP3_
> Add.php
>
> not very secret, now that you've told everyone :)
Yep, I was waitin' for that one  :-)


>
> anyway - do you have any .htaccess directives in one directory, you don't
> have in the other?
>

I do have separate .htaccess files for 2 separate sections.  There is one
controlling the "devArea" realm, and it is at:
https://skunkWerkz.hosting-advantage.com/superSecretTesting/

The second one I have is at:
https://skunkWerkz.hosting-advantage.com/updateAdmin
to control the "administration" realm

There is some other info, related to this that may be of use:
The real name name of the site is www.imperialthrust.com.  Since this is
just a rock band's web site, I didn't need my own certificate for
ecommerce, but I did want to use the web hosts shared cert so I could
secure a section of the site for administration.  I was given the 3rd
level domain alias: skunkWerkz.hosting-advantage.com that apparently
bounces me through their authentication server.  For a while the web site
was not registered, so I've been connecting directly to
skunkWerkz.hosting-advantage.com
directly.
But I've been running some tests and it looks as if when I go
through
https://www.imperialthrust.com/superSecretTesting/updateAdmin/MP3_Add.php,
for some strange reason, jpegs and gifs are now able to be uploaded.  It
appears to be working, but I sure wish I knew why

Carl

>
> -Original Message-
> From: Carl Schmidt [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 04, 2002 3:39 PM
> To: Miguel Cruz
> Cc: Bob; [EMAIL PROTECTED]
> Subject: Re: [PHP] Cannot upload JPEG only
>
>
> And here's the really wacky part i just found out. I have a page in prod
> that uploads MP3s.
> Part off what it does is upload the file, examine its' type , and then
> discard the file if it's not the type expected. Assuming the web host was
> set to not allow uploads of jpg and gif, the MP3 page wouldve errored out
> , saying it couldn't upload the file;  but the weird thing is that it
> _can_ upload jpgs and gifs, but needless to say discards them because
> they are the wrong type.
>
> I tried the same MP3 page in developmen, but it exhibits the same behavior
> as the image upload page in that it won't even upload a jpeg or gif.  This
> leads me to bleieve I've got some sort of configuration issue here.
> Both eprod and dev are on the same box.  Here's the paths to the 2 pages:
>
> Prod:
> https://skunkWerkz.hosting-advantage.com/updateAdmin/MP3_Add.php
> Dev:
> https://skunkWerkz.hosting-advantage.com/superSecretTesting/updateAdmin/MP3_
> Add.php
>
> Carl
>
>
>
> On Wed, 3 Apr 2002, Miguel Cruz wrote:
>
> > On Wed, 3 Apr 2002, Carl Schmidt wrote:
> > > Thank you for the code snippets.  Unfortunately the problem is that I
> > > can'tget far enough to process the file.  When the php script that
> > > supposed to process the file tests with is_uploaded_file, it fails.  In
> > > addtion, the $HTTP_POST_FILE['userfile']['tmp_name']=none.  So i can't
> > > process anything since, as far as php is concerned, it appears nothing
> is
> > > uploaded.
> >
> > What happens if you take a file that works, and rename it so the extension
> > is .GIF, and try uploading it? I mean, obviously it won't be a valid
> > image, but will it transfer and show up?
> >
> > miguel
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Cannot upload JPEG only

2002-04-03 Thread Carl Schmidt

And here's the really wacky part i just found out. I have a page in prod
that uploads MP3s.
Part off what it does is upload the file, examine its' type , and then
discard the file if it's not the type expected. Assuming the web host was
set to not allow uploads of jpg and gif, the MP3 page wouldve errored out
, saying it couldn't upload the file;  but the weird thing is that it
_can_ upload jpgs and gifs, but needless to say discards them because
they are the wrong type.

I tried the same MP3 page in developmen, but it exhibits the same behavior
as the image upload page in that it won't even upload a jpeg or gif.  This
leads me to bleieve I've got some sort of configuration issue here.
Both eprod and dev are on the same box.  Here's the paths to the 2 pages:

Prod:
https://skunkWerkz.hosting-advantage.com/updateAdmin/MP3_Add.php
Dev:
https://skunkWerkz.hosting-advantage.com/superSecretTesting/updateAdmin/MP3_Add.php

Carl



On Wed, 3 Apr 2002, Miguel Cruz wrote:

> On Wed, 3 Apr 2002, Carl Schmidt wrote:
> > Thank you for the code snippets.  Unfortunately the problem is that I
> > can'tget far enough to process the file.  When the php script that
> > supposed to process the file tests with is_uploaded_file, it fails.  In
> > addtion, the $HTTP_POST_FILE['userfile']['tmp_name']=none.  So i can't
> > process anything since, as far as php is concerned, it appears nothing is
> > uploaded.
>
> What happens if you take a file that works, and rename it so the extension
> is .GIF, and try uploading it? I mean, obviously it won't be a valid
> image, but will it transfer and show up?
>
> miguel
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Cannot upload JPEG only

2002-04-03 Thread Carl Schmidt

I copied index.html to index.gif, and it uploaded fine as index.gif to the
appropirate
directory.

Carl


On Wed, 3 Apr 2002, Miguel Cruz wrote:

> On Wed, 3 Apr 2002, Carl Schmidt wrote:
> > Thank you for the code snippets.  Unfortunately the problem is that I
> > can'tget far enough to process the file.  When the php script that
> > supposed to process the file tests with is_uploaded_file, it fails.  In
> > addtion, the $HTTP_POST_FILE['userfile']['tmp_name']=none.  So i can't
> > process anything since, as far as php is concerned, it appears nothing is
> > uploaded.
>
> What happens if you take a file that works, and rename it so the extension
> is .GIF, and try uploading it? I mean, obviously it won't be a valid
> image, but will it transfer and show up?
>
> miguel
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Cannot upload JPEG only

2002-04-03 Thread Miguel Cruz

On Wed, 3 Apr 2002, Carl Schmidt wrote:
> Thank you for the code snippets.  Unfortunately the problem is that I
> can'tget far enough to process the file.  When the php script that
> supposed to process the file tests with is_uploaded_file, it fails.  In
> addtion, the $HTTP_POST_FILE['userfile']['tmp_name']=none.  So i can't
> process anything since, as far as php is concerned, it appears nothing is
> uploaded.

What happens if you take a file that works, and rename it so the extension 
is .GIF, and try uploading it? I mean, obviously it won't be a valid 
image, but will it transfer and show up?

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Cannot upload JPEG only

2002-04-03 Thread Carl Schmidt

Thank you for the code snippets.  Unfortunately the problem is that I
can'tget far enough to process the file.  When the php script that
supposed to process the file tests with is_uploaded_file, it fails.  In
addtion, the $HTTP_POST_FILE['userfile']['tmp_name']=none.  So i can't
process anything since, as far as php is concerned, it appears nothing is
uploaded.

Carl


On Wed, 3 Apr 2002, Bob wrote:

> Uhh, yeah, I forgot the getImage function part of the file.. Sorry about
> that.. Here it is..
>
> function getImage( $image, $newName = false )
> {
> global ${ $image }, ${ $image . "_name" }, ${ $image . "_size" }, ${
> $image . "_type" };
>
> //check for productImages directory
> if( !is_dir( "productImages" ) )
> {
> if( !mkdir( "productImages", 0777 ) ) die( "Error: Could not
> create productImages directory." );
> }
>
> $name = basename( ${ $image . "_name" } );
> $size = ${ $image . "_size" };
> $type = ${ $image . "_type" };
>
> $name = strtolower( $name );
> $name = str_replace( " ", "_", $name );
> //$name = ereg_replace( "[\@\$\%\^\~\ \.\,\"\'\(\)\&\*]", "", $name );
>
> if( $newName )
> {
> if( eregi( "\.jpg", $name ) or eregi( "\.jpeg", $name ) ) $ext =
> ".jpg";
> else $ext = ".gif";
> $name = $newName . $ext;
> }
>
> @copy( ${ $image }, "productImages/$name" );
> return $name;
> }
>
>
> Let me know if any of this helps..
>
> Bob
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Cannot upload JPEG only

2002-04-03 Thread Carl Schmidt

I believe my web host has Apache/Php combo running on Linux. I don't
believe I'm using any funky characters, and definately no spaces.  Here's
one of the files I'm trying to upload:
F:\Personal\Band\Site\images\HomePage01_03.jpg

Carl

On Wed, 3 Apr 2002, Dennis Moore wrote:

> Very strange... What environment are you runnign PHP?  Do you have any
> spaces in the file names or the file names named in a funny format?
>
> /dkm
>
>
>
>
> - Original Message -
> From: "Carl Schmidt" <[EMAIL PROTECTED]>
> To: "Bob" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 03, 2002 10:12 PM
> Subject: Re: [PHP] Cannot upload JPEG only
>
>
> > No I haven't.  Right now, it's uploading via a simple form POST. I can
> > initiate the upload , but when I have the php process the file, it fails
> > on the first test for is_uploaded_file, and tmp_name is none.  The thing
> > is though, Iam only unable to upload gifs and jpegs, but yet i can upload
> > other things like mp3s and text files and such.
> >
> > Carl
> >
> >  On Wed, 3 Apr 2002, Bob wrote:
> >
> > > Did you try passive mode FTP?
> > >
> > > Later,
> > > Bob
> > >
> > > - Original Message -
> > > From: "Carl" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, April 03, 2002 7:54 PM
> > > Subject: [PHP] Cannot upload JPEG only
> > >
> > >
> > > > I'm able to successfully upload mp3s and text files to the server, but
> > > > for some reason it won't let me upload jpegs or gifs?  Is that a
> server
> > > > configuration thing?
> > > >
> > > > Carl
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Cannot upload JPEG only

2002-04-03 Thread Bob

Uhh, yeah, I forgot the getImage function part of the file.. Sorry about
that.. Here it is..

function getImage( $image, $newName = false )
{
global ${ $image }, ${ $image . "_name" }, ${ $image . "_size" }, ${
$image . "_type" };

//check for productImages directory
if( !is_dir( "productImages" ) )
{
if( !mkdir( "productImages", 0777 ) ) die( "Error: Could not
create productImages directory." );
}

$name = basename( ${ $image . "_name" } );
$size = ${ $image . "_size" };
$type = ${ $image . "_type" };

$name = strtolower( $name );
$name = str_replace( " ", "_", $name );
//$name = ereg_replace( "[\@\$\%\^\~\ \.\,\"\'\(\)\&\*]", "", $name );

if( $newName )
{
if( eregi( "\.jpg", $name ) or eregi( "\.jpeg", $name ) ) $ext =
".jpg";
else $ext = ".gif";
$name = $newName . $ext;
}

@copy( ${ $image }, "productImages/$name" );
return $name;
}


Let me know if any of this helps..

Bob


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Cannot upload JPEG only

2002-04-03 Thread Dennis Moore

Very strange... What environment are you runnign PHP?  Do you have any
spaces in the file names or the file names named in a funny format?

/dkm




- Original Message -
From: "Carl Schmidt" <[EMAIL PROTECTED]>
To: "Bob" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, April 03, 2002 10:12 PM
Subject: Re: [PHP] Cannot upload JPEG only


> No I haven't.  Right now, it's uploading via a simple form POST. I can
> initiate the upload , but when I have the php process the file, it fails
> on the first test for is_uploaded_file, and tmp_name is none.  The thing
> is though, Iam only unable to upload gifs and jpegs, but yet i can upload
> other things like mp3s and text files and such.
>
> Carl
>
>  On Wed, 3 Apr 2002, Bob wrote:
>
> > Did you try passive mode FTP?
> >
> > Later,
> > Bob
> >
> > - Original Message -
> > From: "Carl" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, April 03, 2002 7:54 PM
> > Subject: [PHP] Cannot upload JPEG only
> >
> >
> > > I'm able to successfully upload mp3s and text files to the server, but
> > > for some reason it won't let me upload jpegs or gifs?  Is that a
server
> > > configuration thing?
> > >
> > > Carl
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Cannot upload JPEG only

2002-04-03 Thread Carl Schmidt

I'm going to just paste the entire page I've got right now.  This is the
html as output to the browser for the form submittal:


Add an Image






SQL: SELECT * FROM Development_ImageDateSQL: SELECT * FROM
Development_Photographer

  

  
 Add an Image:
  


  
Description: This page provides both the ability to
upload the
  Full Size Image and a Thumbnail as well as add additional
information
  about the Image. A Thumbnail is the small, preview image loaded
on a
  page. The user clicks on this thumbnail to view the Full Size
Image.
  The Date and Date Caption will appear over all images uploaded
for a
  particular date. This is useful for uploading large numbers of
photos,
  all pertaining to the same show. That way, no individual Image
Captions
  are really necessary.
  Directions:
  1. Select a Date from the Drop down list. If the date isn't in
the list,
  type it in in the Date text box. Add a caption in the Caption
text box.
  This general Caption will appear over all images submitted for
that
  date.
  2. Choose an image for the Full Size Image
  3. Choose an image for the Thumbnail Image
  4. Choose the Photographer from the list box. If the
photographer is
  not listed, this person may be aded in the Add Photographer text
box
  5. Add an Image Caption.
  
  Please click the Upload File Now button
ONLY
  ONCE, the file may take some time to upload. DO NOT CLOSE THE
WEB BROWSER,
  this will stop the file upload.
  

WARNING: There were errors on the page, but they are not
serious.No Image Date Information exists in the
database.Image Date information is added to the database each
time an Image is added or updatedPlease go to the Image Manager Page To add or update Image
informationThere is no photographer information in the
database.Photographer information is added to the database each
time an Image is added or updatedPlease go to the Image Manager Page To add or update Image
information 
  Date:
  
   


  Add Date/Caption
   Date:
  

  
  Date Caption:
  

  


  Full Size Image/
Thumbnail Image:
  


  


  Photographer:
  
   


  Add Photographer:
  

  
  Last Name, First Name


  Add Image Caption:
  

  

  
  


  









On Wed, 3 Apr 2002, Bob wrote:

> Would it help to have the  tag look like this:
>
>  enctype=\"multipart/form-data\">
>
> The enctype is the part I'm wondering about.. The action and method would be
> your own or course..
>
> Later,
>
> Bob
>
> - Original Message -
> From: "Carl Schmidt" <[EMAIL PROTECTED]>
> To: "Bob" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 03, 2002 8:12 PM
> Subject: Re: [PHP] Cannot upload JPEG only
>
>
> > No I haven't.  Right now, it's uploading via a simple form POST. I can
> > initiate the upload , but when I have the php process the file, it fails
> > on the first test for is_uploaded_file, and tmp_name is none.  The thing
> > is though, Iam only unable to upload gifs and jpegs, but yet i can upload
> > other things like mp3s and text files and such.
> >
> > Carl
> >
> >  On Wed, 3 Apr 2002, Bob wrote:
> >
> > > Did you try passive mode FTP?
> > >
> > > Later,
> > > Bob
> > >
> > > - Original Message -
> > > From: "Carl" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, April 03, 2002 7:54 PM
> > > Subject: [PHP] Cannot upload JPEG only
> > >
> > >
> > > > I'm able to successfully upload mp3s and text files to the server, but
> > > > for some reason it won't let me upload jpegs or gifs?  Is that a
> server
> > > > configuration thing?
> > > >
> > > > Carl
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Cannot upload JPEG only

2002-04-03 Thread Bob

Would it help to have the  tag look like this:



The enctype is the part I'm wondering about.. The action and method would be
your own or course..

Later,

Bob

- Original Message -
From: "Carl Schmidt" <[EMAIL PROTECTED]>
To: "Bob" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, April 03, 2002 8:12 PM
Subject: Re: [PHP] Cannot upload JPEG only


> No I haven't.  Right now, it's uploading via a simple form POST. I can
> initiate the upload , but when I have the php process the file, it fails
> on the first test for is_uploaded_file, and tmp_name is none.  The thing
> is though, Iam only unable to upload gifs and jpegs, but yet i can upload
> other things like mp3s and text files and such.
>
> Carl
>
>  On Wed, 3 Apr 2002, Bob wrote:
>
> > Did you try passive mode FTP?
> >
> > Later,
> > Bob
> >
> > - Original Message -
> > From: "Carl" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, April 03, 2002 7:54 PM
> > Subject: [PHP] Cannot upload JPEG only
> >
> >
> > > I'm able to successfully upload mp3s and text files to the server, but
> > > for some reason it won't let me upload jpegs or gifs?  Is that a
server
> > > configuration thing?
> > >
> > > Carl
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Cannot upload JPEG only

2002-04-03 Thread Carl Schmidt

No I haven't.  Right now, it's uploading via a simple form POST. I can
initiate the upload , but when I have the php process the file, it fails
on the first test for is_uploaded_file, and tmp_name is none.  The thing
is though, Iam only unable to upload gifs and jpegs, but yet i can upload
other things like mp3s and text files and such.

Carl

 On Wed, 3 Apr 2002, Bob wrote:

> Did you try passive mode FTP?
>
> Later,
> Bob
>
> - Original Message -
> From: "Carl" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 03, 2002 7:54 PM
> Subject: [PHP] Cannot upload JPEG only
>
>
> > I'm able to successfully upload mp3s and text files to the server, but
> > for some reason it won't let me upload jpegs or gifs?  Is that a server
> > configuration thing?
> >
> > Carl
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Cannot upload JPEG only

2002-04-03 Thread Carl Schmidt

I can initaite an upload from the browser.  However, once the php acript
attempts to process the uploaded file, it failswhen I test for
is_uploaded_file.  i also printed out the value of tmp_name and it was set
to none.

Carl

 On Wed, 3 Apr 2002, Miguel Cruz wrote:

> On Wed, 3 Apr 2002, Carl wrote:
> > I'm able to successfully upload mp3s and text files to the server, but
> > for some reason it won't let me upload jpegs or gifs?  Is that a server
> > configuration thing?
>
> What do you mean by "it won't let me"? What happens? An error message?
> Does a file get stored in the temp directory?
>
> miguel
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Cannot upload JPEG only

2002-04-03 Thread Bob

Did you try passive mode FTP?

Later,
Bob

- Original Message - 
From: "Carl" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 03, 2002 7:54 PM
Subject: [PHP] Cannot upload JPEG only


> I'm able to successfully upload mp3s and text files to the server, but
> for some reason it won't let me upload jpegs or gifs?  Is that a server
> configuration thing?
> 
> Carl
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Cannot upload JPEG only

2002-04-03 Thread Miguel Cruz

On Wed, 3 Apr 2002, Carl wrote:
> I'm able to successfully upload mp3s and text files to the server, but
> for some reason it won't let me upload jpegs or gifs?  Is that a server
> configuration thing?

What do you mean by "it won't let me"? What happens? An error message? 
Does a file get stored in the temp directory?

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php