Webmastersite.net
Register Log In

image can not be downloaded
for custom image attachments

Comments on image can not be downloaded

peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Dec 22, 2005 - 10:55 PM:

Hello Paul,

When using custom field image attachments, they can not be downloaded or opened.

When clicking on
< a href="download.php?id={LINKID}&field=image1attach" > MyImage1 </a>

The following error arises:

Fatal error: Cannot instantiate non-existent class: attachment in /home/mywebsite/public_html/mydirectory/download.php on line 77

I have solved this by uploading old "download.php" field. It should be some issue at this file.

Thanks for your support on this.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 23, 2005 - 3:44 AM:

I created a field 'attachtest', uploaded an image to it, and went to localhost/wsnlinks/download...p?id=4956&field=attachtest . It displays the image perfectly. You're going to need to tell me what you're doing different so that I have a method to reproduce.

Based on the error, could you simply have attachments switched off?
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Dec 24, 2005 - 8:23 AM:

After checking a lot I realize that actually I do have attachments switched off ! and this was causing the problem. I have being upgrading this directory from 3.16, so I maybe a previous upgrade has this switch off by default?, and I had by-passed this difficulty by using a previous dowload.php version.

Thanks for your comments and

Merry Christmas.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.