Re: Re: Stuck trying to upload and grab file name

"Graham H." <[email protected]>
Newsgroups gmane.comp.php.database
Message-ID <CAAo-PTFnV0THBOm67jC8HaQ6WF_jRu7giPsPjNe5p7KrAgYfNg@mail.gmail.com>
If by "the line" you mean:   ["tmp_name"]=> string(14) "/tmp/phpcLtE6W"

That is from the bottom of this Pastie link: http://pastie.org/4317155

On Tue, Jul 24, 2012 at 10:29 AM, Jim Giner <[email protected]>wrote:

>
> On 7/24/2012 12:05 PM, Graham H. wrote:
>
>> Does the problem have anything to do with this:
>>
>>
>>   ["tmp_name"]=> string(14) "/tmp/phpcLtE6W"
>>
>> So this:
>>
>> $file = $_FILES["file"]["tmp_name"];
>>
>> Would make $file == "/tmp/phpcLtE6W"
>>
>> I'm not sure if that's what you want. Seems more likely that you'd want it
>> to be:
>>
>> $file = $_FILES["file"]["name"];
>>
>> Useful?
>>
>>
>>  Graham,
> The line you reference - I don't see that in my code (which is production
> code) nor in the OP's code.
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Graham Holtslander
Computer Systems Technologist
www.graham.holtslander.com
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.