Jump to content

Recommended Posts

I have a script that uploads a jpg from a form. PHP handles the form

 

The image is stored in a folder and I have permissions

 

the script works great on my old computer (xp-pro) and on the apache server

 

the script does not work in new computer / new PHP install / Vista OS

 

This is what displays from the local server / vista / IIS7

debugging info:Array ( [img1] => Array ( [name] => Desert Landscape.jpg [type] => [tmp_name] => [error] => 6 => 0 ) )

 

 

This is the correct display from the Apache server

debugging info:

Array ( [img1] => Array ( [name] => Autumn Leaves.jpg [type] => image/pjpeg [tmp_name] => /tmp/php6nXuLM [error] => 0 => 276216 ) )

 

I am missing file tmp name, file size, file type --- only the name is in the array.

 

also the script throws an error 6  -  tmp folder not found

 

I have tried various folders and the permissions is set to read write.

 

 

the php.ini --

 

; Temporary directory for HTTP uploaded files (will use system default if not

; specified).

upload_tmp_dir = c:\tmp\

 

 

; Maximum allowed size for uploaded files.

upload_max_filesize = 20M

 

 

Any idea what the problem might be?

 

I have checked the php.ini and it seems all the options needed are available and unremarked

 

The

 

I have the mbstring before the efix in the PHP.ini file

 

been at this for 5 days and any help would be appreciated!!!

 

David

 

 

Link to comment
https://forums.phpfreaks.com/topic/56751-problems-uploading-jpg-image-to-folder/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.