Re: File Upload Strangeness
| From: | Chris Lee | Date: | Tue, 27 Feb 2001 23:16:45 +0000 |
| Subject: | Re: File Upload Strangeness | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41931@lists.php.net to get a copy of this message | ||
you will find some browsers dont work like they should, opera doesnt seem to
like my uploads.
<?php
include_once('database.egn');
include_once('time.egn');
if ($db_file != 'none' AND $db_file AND is_uploaded_file($db_file) AND
filesize($db_file))
{
$db_file = addslashes(fread(fopen($db_file, 'r'), filesize($db_file)));
$db_file_id = mtime();
insert_db_value('images', " '$db_file_id', '$db_file',
'$db_file_name',
'$db_file_type' ");
}
echo "
<html>
<body>
<form method=post enctype='multipart/form-data' action='$PHP_SELF'>
<input type=file name=db_file>
<input type=submit>
</form>
</body>
</html>
";
?>
works or me, email me your comments if this is or isnt working for you
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
lee@mediawaveonline.com
"Jason Murray" <jason@jwebmedia.com> wrote in message
news:3A9AC005.AEC4926B@jwebmedia.com...
> Hi there,
>
> We are currently using 3.0.16 (I know :().
>
> I have a form action pointing to $PHP_SELF. After submitting the form
> information, $userfile contains what I expect in $userfile_name. I have
> had all sorts of troubles with file uploads lately, but eventually they
> start working. Not this time.
>
> Can someone give me a clue, please?
>
> Thanks,
> Jason
>
> --
> Jason Murray
> Developer
> http://www.jwebmedia.com/
> 1 877 525 jWEB
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>