| Re: WF-DOWNLOADS uploads problem |
| by ricketno on 2005/8/3 10:01:17 The problem was due to the installed php version : 4.3.11 dev: for developers using php version 4.3.11 and 4.3.11dev: add these lines in submit.php after line 47 (global $_FILES) # Hacked --- uploads problems php 4.3.11 and 4.3.11dev # $numeric_php_version = substr(phpversion(),0,6); if($numeric_php_version == "4.3.11") { $_FILES['userfile']['name'] = end(explode("\\",$_FILES['userfile']['name'])); } # ---- END of added lines ---- # Hope it will be useful... Bye |
| WF-DOWNLOADS uploads problem |
| by ricketno on 2005/8/3 8:36:33 We have a problem with uploads in module wf-downloads 2.05. When we upload a file through the "submit.php" page a file is created with complete local path : C:/document&settings/appserv/www/filename.zip we tried to install the module on another apache server and the file is saved correctly without entire path but only with his name. (filename.zip) Does it depend from the php.ini or apache configuration? why the same server var " $_FILES['name'] " has a type of value on server 1 and another on server 2? thanks |