RE: $_FILES empty, trouble with uploading

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks to both of you. 

It seems the problem lies with Apache, actually. I did try the script with my install of lighttpd on the same server, and it goes flawlessly. It's not the first time this apache server give me trouble. So I'll use lighttpd and give one finger to this particular apache server. 

It's just curious that it stopped working one day.

Thanks anyway ! 

Karl

Date: Thu, 5 Mar 2009 21:01:27 +0800
From: sorever@xxxxxxxxx
To: ash@xxxxxxxxxxxxxxxxxxxx; sadness203@xxxxxxxxxxx
CC: php-general@xxxxxxxxxxxxx
Subject: Re: Re:  $_FILES empty, trouble with uploading










 
yes,I agree with Ash ,you can 
test it on a local testing server 
or the other server.
 
if it work ,then you can sure it's environment 
problem.
 
 
2009-03-05 


zhoo 


发件人: Ashley Sheridan 

发送时间: 2009-03-05  04:10:02 

收件人: Karl St-Jacques 

抄送: php-general 
主题: Re:  $_FILES empty, 
trouble with uploading 
 

On Wed, 2009-03-04 at 09:02 -0500, Karl St-Jacques wrote:
> Hello people. 
> 
> I have some trouble with an upload script. It was working until the last 2 weeks. 
> 
> Whenever I tried to upload a file to a remote server, the $_FILES array is empty. I print global at start of the script there's nothing. 
> 
> Here's the form
> 
> <form action="http://random.server.com/video/upload.php"; method="post" enctype="multipart/form-data">
> <input type="hidden" name="sessid" value="yada">
> <input type="hidden" name="ugroup" value="xfr">
> <input type="hidden" name="memberid" value="25798">
> <input type="hidden" name="referrer" value="server.com">
> <label>Title:</label><input type="text" name="video_title" value="N/A" size="20" maxlenght="30">
> <label>Description:</label><input type="text" name="video_desc" value="N/A" size="20" maxlenght="255">
> <label>Category:</label>
> <select name="video_category">
>  <option value="1">yada</option>
>  <option value="5">yada2</option>
> </select>
> <input type="hidden" name="MAX_FILE_SIZE" value="209715200" />
> <input name="vid_files" type="file" size="30" /><br />
> <input type="submit" name="upload" class="sbtn" value="Go!" />
> </form>
> So it's a basic form, I do have the enctype. 
> 
> the print_r($GLOBALS) return me [_FILES] => Array
>         (
>         )
> 
> PHP Version 5.2.6file_uploads is On
> post_max_size 200M
> upload_max_filesize 200M
> upload_tmp_dir no value (it use /tmp)
> 
> the /tmp folder is writable by apache (chmod 777) with 197G of space left. 
> 
> So, obviously, I'm lost as why I can't upload file anymore. 
> 
> Anyone had a similar problem ? What could I do to find/fix the problem ? 
> Is it even related to PHP ? 
> 
> Thanks, 
> Karl
> 
> 
> _________________________________________________________________
> Share photos with friends on Windows Live Messenger
> http://go.microsoft.com/?linkid=9650734

Has your php.ini file been changed at all? If the max upload setting and
memory settings have been reduced, it will affect uploads. How large is
the file you are trying to upload? And lastly, does the script work on a
local testing server?


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

_________________________________________________________________
Experience all of the new features, and Reconnect with your life.
http://go.microsoft.com/?linkid=9650730

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux