View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007660 | mantisbt | attachments | public | 2006-12-15 06:25 | 2014-01-29 15:50 |
Reporter | Cakeman | Assigned To | vboctor | ||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | won't fix | ||
Platform | IIS 6 php4 | OS | Windows 2003 | ||
Product Version | 1.0.6 | ||||
Summary | 0007660: FTP method | ||||
Description | Hello, I have found a bug I think concerning the file upload with FTP. The code is: if ( !file_exists( $t_disk_file_name ) ) { if ( !move_uploaded_file( $p_tmp_file, $t_disk_file_name ) ) {echo $p_tmp_file.'!!!'. $t_disk_file_name ; $c_content = ''; But it does not work on php on IIS. Indeed, you put the file on the FTP serveur with: And after, you try to move the file with: Quote: It is not logical because $t_disk_file_name is the name on the FTP serveur and not the webserveur !!! I mke a little correction: if ( !file_exists( $t_disk_file_name ) ) { if ( !file_exists( $t_disk_file_name ) ) { $c_content = ''; It works very well. | ||||
Steps To Reproduce | $g_allow_file_upload = ON; Tehn try to upload files | ||||
Tags | No tags attached. | ||||
In the FTP method, $g_absolute_path_default_upload_folder seems to represent the path on the ftp serveur and not on the web server |
|
To correct all the problem you must modify download_file.php: $ftp = file_ftp_connect(); |
|
Merging issue 5427 into this one - that also talks about the case whether there should be two paths - web server path + ftp path |
|
See 0016849 - this feature is being deprecated. |
|