PDA

View Full Version : Error Something's wrong in file upload!


shamusomalley
04-25-2006, 08:34 PM
Hello, Just found this very neat piece of software. Instalation went off WO a hitch. Tables have all been created. Problem is I cant upload images. I keep getting the error listed above.

Seems to be dying at
if(move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
in new_image.php

I poked around a bit and have determined that
$_FILES['userfile']['tmp_name'] is C:\PHP\uploadtemp\php4A46.tmp.

Now I'm not super strong on PHP but I did check out the move_uploaded_file function and think maybe I don't have access to C:\PHP\uploadtemp\php4A46.tmp. I am using a shared server or does that refer to a local directory. I really have no idea so it is only a guess. Here are my stats.

Pixelpost Information
You are running Pixelpost version 1.5 - April 2006
Latest pixelpost version: Check

Looking for help or want to give feedback, please step into pixelpost forum.: www.pixelpost.org/forum/

Host Information

URL http://www.mywebsite.com/family/photoblog/admin/index.php

PHP-version 4.4.1 (Pixelpost's min requirement: PHP version: 4.3.0 )

MySQL version 4.1.12-log (Pixelpost's min requirement: MySQL: 3.23.58 )

GD-lib bundled (2.0.28 compatible) with JPEG support

File Uploads to pixelpost site are possible.

Server Software Microsoft-IIS/6.0

EXIF Pixelpost is using exifer v1.5 for EXIF-information.

Paths
Guessed imagepath: /family/photoblog/images/

Configured Imagepath: ../images/

Image Directory: OK - Can we write to the directory? YES. CHMOD: 0777

Thumbnails Directory: OK - Can we write to the directory? YES. CHMOD: 0777

Language Directory: OK

Addons Directory: OK

Includes Directory: OK

Templates Directory: OK

Any help is GREATLY appreciated!!

raminia
04-25-2006, 08:51 PM
- what's the error message you see when uploading files?
- did you CHMOD images and thumbnails directories?
- that local directory is the PHP's temporary directory which is set for file upload. it's routine work of PHP and no big deal.
- ask your host admin if you have the permission to upload files within php

shamusomalley
04-25-2006, 09:54 PM
Hi raminia, Thanks for taking the time to respond. Here are my answers:

- what's the error message you see when uploading files?
The error appears at the bottom of the page after the image file is submitted and in a red box states:
Error
Something's wrong in file upload!
- did you CHMOD images and thumbnails directories?
Since it is an IIS server there is no CHMOD settings but I did allow full permissions to everyone
- that local directory is the PHP's temporary directory which is set for file upload. it's routine work of PHP and no big deal.
OK but if I check that directory manually should I see a uploadtemp folder?
- ask your host admin if you have the permission to upload files within php
Should not be a problem as I use zen cart to upload certain files which runs on php.

raminia
04-25-2006, 10:17 PM
read/write/excute permissions to everyone

shamusomalley
04-25-2006, 11:21 PM
read/write/excute permissions to everyone
Yup. Did that.

On a side note, if I FTP a folder of pics I am able to use the addons functionality to upload the entire directory so I don't think its a permissions issue, at least not on my server.

I think the problem I'm having has got something to do with the move_uploaded_file function returning false becuase the parameter $_FILES['userfile']['tmp_name'] which provides a directory that looks something like C:\PHP\uploadtemp\php4A46.tmp is not being found or is invalid.

But again, I really dont know and would love to hear any and all suggestions

shamusomalley
04-26-2006, 06:30 PM
Just an update. If I use edit and upload a different pic I have no problems. Still can figure out why I cant add a new one though.

Connie
04-26-2006, 06:32 PM
maybe you have no space left at your host?
did you check how much space you have and how much of that is unused?