Jonny
Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
|
Monday, Jul 28, 2008 11:36
When uploading an attachment it kept saying 'Wrong attachment area', which was because $attachtype was not always assigned.
To solve this, open uploads/upload.php. Find (lines 201-203):
RAW CODE $topicid = escape_string($_GET['topicid']);
$attachtype=escape_string($_GET['attachtype']);
$hash=escape_string($_GET['hash']);
and move it above:
RAW CODE if (isset($_GET['id'])){
That should solve the problem
|