| 
| Subject: | good,but should be better | 
|---|
 | Summary: | Package rating comment | 
|---|
 | Messages: | 2 | 
|---|
 | Author: | pangyongtao | 
|---|
 | Date: | 2008-06-16 12:39:52 | 
|---|
 | Update: | 2008-06-16 12:41:10 | 
|---|
 |  |  |  | 
pangyongtao rated this package as follows:
| Utility: | Good | 
|---|
| Consistency: | Good | 
|---|
| Examples: | Insufficient | 
|---|
|  | 
  pangyongtao - 2008-06-16 12:39:52good,but should be better
  pangyongtao - 2008-06-16 12:41:10 - In reply to message 1 from pangyongtaohi Abhishek Kumar Srivastava: 
    this is pang yong tao from china yahoo!, today i read your Curl File Uploader,and have a try ,but i meet some problem,maybe you are kind enough to help me . 
  i use your uploader class to upload image to my server,everything looks good. this is what output :print_r($_POST); 
[Mon Jun 16 20:25:17 2008] [error] Array 
( 
    [ns] => UIP 
    [ret] => json 
    [spec] => specss 
)
 
print_r($_FILES); 
[Mon Jun 16 20:25:17 2008] [error] Array 
( 
    [Filedata] => Array 
        ( 
            [name] => canonixus.jpg 
            [type] => image/jpeg 
            [tmp_name] => /home/y/var/flv/phpC804KR 
            [error] => 0 
            [size] => 128037 
        )
 
)
 
but ,i also got this warn :Invalid argument supplied for foreach() , my code looks like:foreach($_FILES['Filedata']['error'] as $key => $error) 
{ 
... 
} 
 can you tell me why i cannot upload image with your code? thank you! mail me:[email protected] |