Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Files attached to posts
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Files attached to posts

 Post Reply Post Reply
Author
herve View Drop Down
Newbie
Newbie
Avatar

Joined: 18 May 2004
Location: France
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote herve Quote  Post ReplyReply Direct Link To This Post Topic: Files attached to posts
    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é

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
thekiwi View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 23 November 2003
Location: New Zealand
Status: Offline
Points: 392
Post Options Post Options   Thanks (0) Thanks(0)   Quote thekiwi Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
herve View Drop Down
Newbie
Newbie
Avatar

Joined: 18 May 2004
Location: France
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote herve Quote  Post ReplyReply Direct Link To This Post Posted: 01 June 2004 at 2:32am
ok, thanks both for the information


Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.