[Answer]-Getting final destination of file upload from within custom upload handler in Django

1👍

file upload handler doesn’t know where the uploaded file will be stored, so if you really have to stick up with custom upload handler you will have to hardcode that path.

Otherwise, you can:

  • custom view to get a tumbnal (generate thumbnail on first request, just like Sorl does)
  • store that path in settings
  • custom Filefield
👤Marat

Leave a comment