Re: [UPHPU] upload file, r =?WINDOWS-1252?Q?ead, _discard=85_move_to_read=3F?=

Morgan Terry localstatic at localstatic.com
Wed Jul 30 12:53:17 MDT 2008


If you don't call move_uploaded_file(), you can read the temporary
file. It's not in memory or anything - just a file in a temporary
directory somewhere, depending on how things are configured. You can
get the file name from the $_FILES superglobal (e.g.
$_FILES['userfile']['tmp_name'] where userfile is the name of your
file <input> element).

See
http://us.php.net/features.file-upload

On Wed, Jul 30, 2008 at 12:52 PM, Morgan Terry <morgan at localstatic.com> wrote:
> If you don't call move_uploaded_file(), you can read the temporary
> file. It's not in memory or anything - just a file in a temporary
> directory somewhere, depending on how things are configured. You can
> get the file name from the $_FILES superglobal (e.g.
> $_FILES['userfile']['tmp_name'] where userfile is the name of your
> file <input> element)
>
> See
> http://us.php.net/features.file-upload
>
>
> On Wed, Jul 30, 2008 at 12:44 PM, Wade Preston Shearer
> <lists at wadeshearer.com> wrote:
>> I guess an important question is whether the file is actually even in a
>> temporary location or if it is just in memory. Does move_uploaded_file()
>> actually _move_ the file or is it just writing it out from memory?
>>
>> _______________________________________________
>>
>> UPHPU mailing list
>> UPHPU at uphpu.org
>> http://uphpu.org/mailman/listinfo/uphpu
>> IRC: #uphpu on irc.freenode.net
>>
>


More information about the UPHPU mailing list