[PHPLIB] file upload problem From: brian (archiver <email protected>)
Date: 03/01/00

This message was sent from Geocrawler.com by "brian" <bsmith <email protected>>
Be sure to reply to that address.

Hello,
(NT user here)

I can upload a very small file, like 1kb, but I can't seem to upload one that is about 900 kb, my
max file upload size is set to 2 Mb in php.ini. When I try the larger file, it seems to be
uploading, but when my code runs that checks for success, I get a "document contained no
data" in the browser, and the file isn't saved. Here is my code:
(path is already set to one on my server)

?>
$fret = copy($new_file, $path);
 ?>
        <? if( $fret ): ?>

        <form action="update_db.pl" method="POST">
        <input type="hidden" name="f" value="<? echo $new_file_name; ?>">
        <input type="hidden" name="seshid" value="<? echo $mysession->seshid;?>">
        <input type="submit" name="submit" value="Begin Processing Data">
        </form>

        <? else: ?>

        <?
                echo("Couldn't save file for some reason");
        ?>
        <? endif; ?>

Please help.
Brian Smith

Geocrawler.com - The Knowledge Archive
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.