List Info

Thread: FFS! - dead file upload stikes again....




FFS! - dead file upload stikes again....
user name
2006-02-16 22:16:27
Jeeeeeeez.... I've been doing PHP for years, but do you
think I can get
the bloody file upload to work???

I'm running 4.3.11 (don't ask)

--------------------------------
safe_mode = Off
file_uploads = On
; this tmp dir definately exists and has full control
permissions
; I already tried it with backslashes
upload_tmp_dir = C:/PHP4/uploadtemp
upload_max_filesize = 8M
---------------------------------

<form action="policy.php?pol_id=20"
method="post" name="policyFiles"
id="policyFiles"
encoding="multipart/form-data">
<input type="hidden"
name="cat_id" id="cat_id"
value="4">
<input type="hidden"
name="user_actor_id"
id="user_actor_id"
value="22">
<input type="hidden"
name="pol_id" id="pol_id"
value="20">
<input type="hidden"
name="MAX_FILE_SIZE"
id="MAX_FILE_SIZE"
value="8000000">
<input type="file"
name="new_file" id="new_file">
<input type="submit"
name="Policies" id="Policies"
value="Update
Files">
</form>

running var_dump($_FILE); on the destination script reveals
an empty
array.

Will someone please inform me as to where my stupidity lies
this time
:/

BTW. I have
display_errors = On
error_reporting  = E_ALL
log_errors = On


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Professional PHP Developers"
group.
To post to this group, send email to Professional-PHPgooglegroups.com
To unsubscribe from this group, send email to
Professional-PHP-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/Professional-PHP
-~----------~----~----~----~------~----~------~--~---

FFS! - dead file upload stikes again....
user name
2006-02-16 22:30:08
I've tried it without the ID attributes.

I also have
post_max_size = 8M

And yes, I have restarted the (apache 1.3) webserver since
setting up
php.ini


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Professional PHP Developers"
group.
To post to this group, send email to Professional-PHPgooglegroups.com
To unsubscribe from this group, send email to
Professional-PHP-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/Professional-PHP
-~----------~----~----~----~------~----~------~--~---

FFS! - dead file upload stikes again....
user name
2006-02-16 22:54:44
never mind. i got it.

attribute is supposed to be "enctype" not
"encoding".

I had a brain fart when setting that attribute :/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Professional PHP Developers"
group.
To post to this group, send email to Professional-PHPgooglegroups.com
To unsubscribe from this group, send email to
Professional-PHP-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/Professional-PHP
-~----------~----~----~----~------~----~------~--~---

FFS! - dead file upload stikes again....
user name
2006-02-17 02:53:41
haha in 3 posts you solved your own problem.


congrats 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Professional PHP Developers"
group.
To post to this group, send email to Professional-PHPgooglegroups.com
To unsubscribe from this group, send email to
Professional-PHP-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/Professional-PHP
-~----------~----~----~----~------~----~------~--~---

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )