FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » File Upload Algorithm
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
File Upload Algorithm [message #16232] Wed, 21 January 2004 03:21 Go to next message
igor is currently offline  igor   Australia
Messages: 1
Registered: January 2004
Karma: 0
Junior Member
Hi,

I am trying to figure out how file upload is designed.
When I create a new post and click on "Upload file" button file appeares as NN.atch on a file system even if post has not submitted yet.
After I deleted an attachment by using Delete link I noticed that file NN.atch remains on a file system.
After post was submitted file still remains on a FS.
Post does not show this attachment which is correct because file was removed from post and there is no link to this file in a DB.
My question is - where is a mechanism to delete such files (if there is)
Is there a nicer way to upload only real attachments?

P.S When you delete post - file attachments related to post will be removed from FS.


Thank you,


Igor
Re: File Upload Algorithm [message #16292 is a reply to message #16232] Sun, 25 January 2004 16:53 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
If the attachment is removed the forum will generally delete the attachment on form submission. It does not do so right away, to ensure if you accidentally delete an existing attachment while editing the message if you close the browser the attachment won't be lost.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Updating Registration screens, colour change
Next Topic: Different theme per category/forum
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 13:23:33 GMT 2024

Total time taken to generate the page: 0.02336 seconds