file upload to folder based on selected category on form

14 views
Skip to first unread message

Trippy Samurai

unread,
Apr 8, 2022, 7:45:12 AM4/8/22
to Django users
Hello,
In my website i am uploading the documents and has title, category(choice field) and file upload on my website, here the file upload stores normally on the admin but how can i store the file inside the seperate folder based on the selected category for ex if the file i am uploading belongs to the category(choice field) named 'X' it should be stored in the folder 'X' likewise for all the other documents should be stored in their respective folders named after category Types.
    
Reply all
Reply to author
Forward
0 new messages