diff options
Diffstat (limited to 'opnfv_testapi')
-rw-r--r-- | opnfv_testapi/resources/application_handlers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opnfv_testapi/resources/application_handlers.py b/opnfv_testapi/resources/application_handlers.py index 258c1aa..7cecd3e 100644 --- a/opnfv_testapi/resources/application_handlers.py +++ b/opnfv_testapi/resources/application_handlers.py @@ -42,7 +42,7 @@ class ApplicationsLogoHandler(GenericApplicationHandler): fileinfo = self.request.files['file'][0] fname = fileinfo['filename'] - location = '3rd_party/static/testapi-ui/assets/img/' + location = 'media/companies/' fh = open(location + fname, 'w') fh.write(fileinfo['body']) msg = 'Successfully uploaded logo: ' + fname @@ -52,7 +52,7 @@ class ApplicationsLogoHandler(GenericApplicationHandler): class ApplicationsGetLogoHandler(GenericApplicationHandler): def get(self, filename): - location = '3rd_party/static/testapi-ui/assets/img/' + filename + location = 'media/companies/' + filename self.set_header('Content-Type', 'application/force-download') self.set_header('Content-Disposition', 'attachment; filename=%s' % filename) |