Problem with uppolading the pic to Database...

Codes here !

Moderators: macek, egami, gesf

Post Reply
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Post by Oleg Butuzov » Wed May 28, 2003 12:38 am

by the first i can say any thing becouthe i did see sourse file...

do you completly sure that POST data isnt transfering???

User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Post by Redcircle » Wed May 28, 2003 4:09 pm

When you use a <input type="file"> the information is not in $_POST it is in $_FILES

ex
<input type="file" name="upload">

$_FILES contains 3 items in the array

$_FILES['upload']['tmp_name'] is the temporary filename in the tmp dir.
$_FILES['upload']['name'] actual filename on your filesystem.
$_FILES['upload']['type'] the mime type of the file

Hope that is what you are looking for. Like Pejone said it would help to see the code.

User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Post by Redcircle » Fri May 30, 2003 10:26 am

are you defining a method in your form tag. i.e.

<form name="upload" method="post" enctype="multipart/form-data" action"">


(this is why seeing code is good. If you don't post code I'm forced to ask stupid questions.)

User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Post by Redcircle » Fri May 30, 2003 12:12 pm

np... hehe.. I work doing tech support.. a reboot usually does the trick :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest