Skip to content

add original_filename in UploadedFile()

Created by: vykozlov

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. Please note that there may be some sections that may not apply to your change, in that case feel free to delete them.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality): adds "original_filename" attribute in UploadedFile(), wrapper.py, to access filename of the original file being uploaded. Set defaults to "None", so that adding the parameter does not break previous instantiations of UploadedFile()
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A installed updated deepaas version in a container with the application (deephdc/dogs_breed_det), checked that the application correctly accesses new parameter (original_filename) and does not break.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Merge request reports

Loading