1
ricketno
WF-DOWNLOADS uploads problem
  • 2005/8/3 8:36

  • ricketno

  • Just popping in

  • Posts: 8

  • Since: 2005/2/16


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

2
ricketno
Re: WF-DOWNLOADS uploads problem
  • 2005/8/3 10:01

  • ricketno

  • Just popping in

  • Posts: 8

  • Since: 2005/2/16


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

Login

Who's Online

373 user(s) are online (83 user(s) are browsing Support Forums)


Members: 0


Guests: 373


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits