Re: [PHP] upload file problem

2008-07-31 Thread Eric Butera
On Thu, Jul 31, 2008 at 10:18 AM, Jignesh Thummar [EMAIL PROTECTED] wrote: I'm trying to upload the file. It's showing me successfully uploaded. But it's not able to move from temp directory to my defined directory my code: if (is_uploaded_file($_FILES['myfile']['tmp_name'])) {

Re: [PHP] upload file problem

2008-07-31 Thread Jignesh Thummar
it's writable. On Thu, Jul 31, 2008 at 3:37 PM, Eric Butera [EMAIL PROTECTED] wrote: On Thu, Jul 31, 2008 at 10:18 AM, Jignesh Thummar [EMAIL PROTECTED] wrote: I'm trying to upload the file. It's showing me successfully uploaded. But it's not able to move from temp directory to my defined

Re: [PHP] upload file problem

2008-07-31 Thread Micah Gersten
Maybe check the return value of the function: http://us3.php.net/manual/en/function.move-uploaded-file.php Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Jignesh Thummar wrote: I'm trying to upload the file. It's showing me successfully uploaded. But it's

Re: [PHP] upload file problem

2008-07-31 Thread Daniel Brown
On Thu, Jul 31, 2008 at 10:18 AM, Jignesh Thummar [EMAIL PROTECTED] wrote: I'm trying to upload the file. It's showing me successfully uploaded. But it's not able to move from temp directory to my defined directory my code: if (is_uploaded_file($_FILES['myfile']['tmp_name'])) {

Re: [PHP] upload file problem

2008-07-31 Thread brian
Jignesh Thummar wrote: I'm trying to upload the file. It's showing me successfully uploaded. But it's not able to move from temp directory to my defined directory my code: if (is_uploaded_file($_FILES['myfile']['tmp_name'])) { move_uploaded_file($_FILES['myfile']['tmp_name'], $myfilename);

Re: [PHP] upload file problem

2008-07-31 Thread Jignesh Thummar
Thanks.. It's fixed... - Jignesh On Thu, Jul 31, 2008 at 6:05 PM, brian [EMAIL PROTECTED] wrote: Jignesh Thummar wrote: I'm trying to upload the file. It's showing me successfully uploaded. But it's not able to move from temp directory to my defined directory my code: if

Re: [PHP] upload file problem

2005-07-10 Thread Richard Lynch
On Sat, July 9, 2005 1:39 am, Ahmed Abdel-Aliem said: Hi i have a problem with a code to upload files on server here is the code $f = $HTTP_POST_FILES['News_Pic']; Use $_FILES to stay current... $dst_file_name = generateUniqueId(); $arr = split(\.,$f['name']); $f['name'] =

RE: [PHP] Upload File Problem

2002-07-18 Thread joakim . andersson
From: Mark Colvin [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 10:09 AM -- upload.php -- ?php if ('img1' != ) { This will allways be true! 'img1' is a string and will never be empty. You probably mean if($img1 != ) However, I'm not sure this will

RE: [PHP] Upload File Problem

2002-07-18 Thread Mark Colvin
Joakim, Thank you for your reply. I tried your example and get 'Possible file upload attack: filename.' meaning that 'if (is_uploaded_file($_FILES['img1']['tmp_name']))' returns false. I put a couple of echo statements in before the if statement to check '$img1_name' '$img1_size and '$img1_type'

RE: [PHP] Upload File Problem

2002-07-18 Thread joakim . andersson
From: Mark Colvin [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 12:41 PM To: [EMAIL PROTECTED] Joakim, Thank you for your reply. I tried your example and get 'Possible file upload attack: filename.' meaning that 'if (is_uploaded_file($_FILES['img1']['tmp_name']))' returns

RE: [PHP] Upload File Problem

2002-07-18 Thread Mark Colvin
Joakim, Thanks again. $HTTP_POST did the trick. I did look through the archives before posting but didn't come across this solution. I obviously didn't look hard enough! This e-mail is intended for the recipient only and may contain