@@ -23,7 +23,7 @@ class Command(CompatibilityBaseCommand): |
||
23 | 23 |
if ext.lower() not in ['jpg', 'jpeg', 'png']: |
24 | 24 |
continue |
25 | 25 |
try: |
26 |
- file_path = 'media/file/{}'.format(file) |
|
26 |
+ file_path = '{}/{}'.format(dir, file) |
|
27 | 27 |
if os.path.exists(file_path): |
28 | 28 |
upload_file_path(file_path, key=file, bucket='tamron') |
29 | 29 |
os.remove(file_path) |