Reading Programming

Nov 02, 2005 05:22 # 40058

eljefe *** wants to know...

PHP and File Uploads

Okay, so I'm having some problems with file uploads.

The form on the page is set up correctly, the picture uploads (as indicated by the long wait until the refresh), but the information is not passed to the next php file. IE $_FILES[][] is completely empty.

I've checkd my php.ini file (my server allows me to set a custom php.ini) and uplaods are enabled, global variables are turned on, and I've used a custom temporary upload path and deleted the line to use the system default, but it doesn't matter cause with either $_fiLES['myfileupload']['tmp_name'] is empty (excuse me if i'm putting an extra s there or whatever, but you know what i mean).

Anyone have any clues? Its not the server, other people experience success.

Pistol Grip Pump In My Lap At All Times

Nov 02, 2005 15:27 # 40071

ginsterbusch *** replies...

Re: PHP and File Uploads

Could you please send me that script? I've got a working image uploader by myself. It's hard to tell what's wrong only based on your small comment that $_FILES is empty.

thanks in advance,
cu, w0lf.

Multiple exclamation marks are a sure sign for a diseased mind!

This post was edited by ginsterbusch on Nov 02, 2005.

Nov 02, 2005 16:35 # 40078

eljefe *** replies...

Found It

Found my problem. enctype="multipart/form-data"

Pistol Grip Pump In My Lap At All Times

Nov 03, 2005 00:15 # 40094

ginsterbusch *** replies...

Re: Found It

Found my problem. enctype="multipart/form-data"

So it was as I thought - just a prick of a server ;)

cu, w0lf.

Multiple exclamation marks are a sure sign for a diseased mind!

Nov 03, 2005 00:23 # 40096

eljefe *** replies...

Simple Mistakes

It's always simple mistakes like that *sigh*.

Pistol Grip Pump In My Lap At All Times

Nov 03, 2005 11:59 # 40111

ginsterbusch *** replies...

Re: Simple Mistakes

t's always simple mistakes like that *sigh*.

That always happens as soon as you try too hard to get something done. Especially with PHP which neither does have a proper debugger nor a good IDE yet. Also sometimes mistakes seem to stick - my biggest one is with substr() - I'm keeping on putting the parameter in the wrong order all the time, finally realizing this when the bloody program doesnt work as it's supposed to be.

But in this case it's always good to have someone else to talk to, who is not so involved into the working process. Basically said, that's what friends are for - personally I regard everyone on NAO as friend - until the opposite is proven. ;)

cu, w0lf.

Multiple exclamation marks are a sure sign for a diseased mind!


Small text Large text

Netalive Amp (Skin for Winamp)