koendewit / django-client-side-image-cropping

Widget for the Django ImageField that provides an interface for cropping the image client-side to a specific size.
BSD 3-Clause "New" or "Revised" License
17 stars 11 forks source link

change file_name in widget #6

Closed mcrack25 closed 3 years ago

mcrack25 commented 3 years ago

Hi, how do I change the file name before uploading? I want to add a title: (title +'. jpeg'), how do I do this?

koendewit commented 3 years ago

You can use the file_name parameter of the constructor of ClientsideCroppingWidget. (see the last line of the documentation)