(Hatta kamu) kullanıcıları şimdi yüklenen dosyaları silmek için yeteneği sağlayan bir özelliği uygulamak istiyorum, *. Pdf dosyaları upload bir sistemi var.
Bu, aklımda ne var:
- create an unique delete hash for each file and store it in database ( associate it with unique id of each file )
- Generate and display the delete url to the user who has uploaded the file
- When the delete url (Along with id and hash ) is called, check if the delete hash matches with the id
- Dosyayı bağlantısını kesmek
is this system ok ? I just want to make sure the user can delete only the file which he has uploaded , but not other files.
Teşekkürler
Edit : Please suggest me a method to create a hash , which cannot be guessed .