Print Page | Close Window

Files attached to posts

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=10515
Printed Date: 08 April 2026 at 1:14pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Files attached to posts
Posted By: herve
Subject: Files attached to posts
Date Posted: 19 May 2004 at 9:25am
Hi,

When you delete a post, the attached files are not deleted.
Is there any plan to do it ?

Bye,
Hervé



-------------
Bye,
Hervé



Replies:
Posted By: WebWiz-Bruce
Date Posted: 19 May 2004 at 9:39am
No, becuase of performance issues with storing the name of each file in the database.

But in the latest version files are stored under folders with the username, and the files themselves have the date and time they where uploaded attached to them, so clearing out old files and images should be simpler.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: thekiwi
Date Posted: 19 May 2004 at 5:05pm
Originally posted by herve herve wrote:

Hi,

When you delete a post, the attached files are not deleted.
Is there any plan to do it ?

Bye,
Hervé


Yes ... although we redesigned the forum and tables significantly to achieve it.

We preferred to have another table which contained the mappings to the message and the attachments, eg called wwf_Attachments.
All this table has is the TopicID and an AttachmentID.
When attachments are made (any number) they are added in here ... and the displaying message  shows links at the bottom of the message.
This has allowed us to delete messages as well as attachments.

The prime motive was because we had Messages being posted via Email (with attachments) and we needed a better way to handle attachments with messages.

Such a MOD is not suitable for the general populace and has taken our install of WWF down a route where we pick and choose what we add to it from new releases.

As Borg has stated ... in a default install of WWF it really isn't possible, since no individual message knows, at a database level, if there are any attachments ... since an attachment is merely stored in the message HTML.


-------------
Cheers
TheKiwi
http://www.infobahn.co.nz - Internet Infobahn - website design and hosting


Posted By: herve
Date Posted: 01 June 2004 at 2:32am
ok, thanks both for the information




-------------
Bye,
Hervé



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net