Home »
FUDforum »
How To »
File Upload Algorithm
File Upload Algorithm [message #16232] |
Wed, 21 January 2004 03:21 |
igor
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 |
Ilia
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
|
|
|
Goto Forum:
Current Time: Fri Nov 22 13:40:59 GMT 2024
Total time taken to generate the page: 0.02335 seconds