Kani999 / netbox-attachments

Plugin to manage attachments for any model
Apache License 2.0
55 stars 4 forks source link

File naming change for issue #48 #49

Closed olofvndrhr closed 8 months ago

olofvndrhr commented 9 months ago

Here is the re-done function like in the issue #48 . Tests were done with local storage and s3 storage backend.

Example of uploaded files:

./netbox-attachments
./netbox-attachments/device
./netbox-attachments/device/1
./netbox-attachments/device/1/tarife_de.pdf
./netbox-attachments/device/1/test.pdf
./netbox-attachments/device/1/abc.pdf
olofvndrhr commented 9 months ago

This PR is the solution if you want to go the "easy" way and not store additional metadata of the files in the DB. As i never worked with Django DB migrations i could not help you with the other way.

Let me know what you think

Kani999 commented 8 months ago

Closed by #51