Re: Re: Stuck trying to upload and grab file name
| From: | Jim Giner | Date: | Tue, 24 Jul 2012 16:29:51 +0000 |
| Subject: | Re: Re: Stuck trying to upload and grab file name | ||
| References: | 1 2 3 4 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-48344@lists.php.net to get a copy of this message | ||
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.