1
ricketno
disallow overwriting in wf-downloads
  • 2005/8/3 10:10

  • ricketno

  • Just popping in

  • Posts: 8

  • Since: 2005/2/16


scenario:

2 users uploaded 2 different files with the same name.

WF-downloads inserts in the DB the following records:

-------------
id | filename
-------------
1 | file.zip
2 | file.zip


in the meantime overwrites in the XOOPS uploads folder the first file with the second , due the the same filename!!

both the links now are related to the same file (the second one).

is this a bug?


2
davidl2
Re: disallow overwriting in wf-downloads
  • 2005/8/3 11:05

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Not so much a bug, but a very rare occasion perhaps?

If you submit this to the wf-projects site (http://www.wf-projects.com) - it is something that can be looked at for future updates perhaps.

3
jdseymour
Re: disallow overwriting in wf-downloads

Actually it is basic common knowledge that two files with the same name cannot exist in the same folder. I always make sure I have a unique name for each file uploaded.

I assume that the only way to get around this would be to have wf-downloads auto rename the uploaded file, but this would hinder uploading updates to existing files.

4
ricketno
Re: disallow overwriting in wf-downloads
  • 2005/8/3 11:28

  • ricketno

  • Just popping in

  • Posts: 8

  • Since: 2005/2/16


Quote:
Actually it is basic common knowledge that two files with the same name cannot exist in the same folder.


Actually it is basic common knowledge that a forum is made for questioning and answering....and we're not all stupids nor all genius....

Quote:
a very rare occasion perhaps


Unfortunately it is quite common to upload files named "index.php" or "index.htm" in our site.

Doesn't WF-downloads check the owner of the file before the upload to avoid overwriting? it should be checked i guess or it should be a configuration option i think.

Thanks to all

Login

Who's Online

405 user(s) are online (61 user(s) are browsing Support Forums)


Members: 0


Guests: 405


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits