File upload Error 3

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Jello
Forum Newbie
Posts: 16
Joined: Mon Jul 16, 2007 1:53 pm

File upload Error 3

Post by Jello »

Hi,

this is a banging head of the wall kinda moment. Have a basic upload script that has been working fine for me all day and suddenly I'm getting error 3(partial file upload) in my $_FILES array for some files. Strangely enough files I uploaded earlier today aren't uploading anymore?

Some files will still upload through the script though!

Anyone any ideas of where I even start to look for a problem?! It's not a time out issue as there's no delay between clicking submit and getting the delay....


aaargh, I feel a hulk-out coming on
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

I believe that's an error that can be caused by either the client no longer responding, or the server no longer responding during the upload. I don't know if there are any settings to avoid it though... I hear uploads through Flash are less likely to fail, but that's a rumor.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Maybe your root partition is full.
Jello
Forum Newbie
Posts: 16
Joined: Mon Jul 16, 2007 1:53 pm

Post by Jello »

I'm going to resurrect this thread instead of posting another one.

The script that I had issues with originally magically fixed itself the following day. Now I'm using the MCPUK connector for the FCK editor file browser and I'm getting the same issue. Error 3 on the majority of my uploads. Occasionally they work but 99% of the time they fail with the highly informative error 3...

I also appear to be having intermittent problems with my sessions that seem to coincide with the upload problems. Basically sessions keep getting lost. This is happening on parts of the system that I haven't touched in days and the php.ini hasn't been changed in days either...

I'm beginning to think it's a configuration issue or a bug. Can anyone offer advice? I've been looking at this for about 3 hours now and I can't make a jot of progress!

Thanks
Paddy
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

Post by jmut »

I'd suggest make simplest script possible for file upload.
Maybe your code is messy and you can't see some nasty bug.
Error enable all + display. Watch apache error log and all. Check free space as astions suggested.
Paste some simple code.
User avatar
nathanr
Forum Contributor
Posts: 200
Joined: Wed Jun 07, 2006 5:46 pm

Post by nathanr »

most definately sounds like your on a linux box and the /tmp drive is full - more than likely you have something logging all http requests into a file in a subdirectory of /tmp - thus no room for sessions or uploads in the tmp drive :)
Post Reply