Django file upload and python Encryption How change file name
144 views
Skip to first unread message
Harold Gomez
unread,
Apr 3, 2016, 12:29:34 AM4/3/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
please help me I have a django file upload sytem a python file encryption code the file encryption is done by a function called encrypt_file which will encrypt the file from
path/filename.extention
to
path/filename.enc
the filename.enc is fixed and only one file is created how can i make it so that it will change after and i can have multiple files on each file upload
MEDIA_FILE = os.path.join(BASE_DIR, 'media/fi1.enc' ) is how i made the path