image stuff

This commit is contained in:
Bryan Gerlach
2024-10-08 16:20:39 -05:00
parent 1422374a67
commit d76c63c7a7
2 changed files with 77 additions and 85 deletions

View File

@@ -227,14 +227,10 @@ def download(request):
return response
def get_png(request):
print("get png")
filename = request.GET['filename']
print(filename)
uuid = request.GET['uuid']
print(uuid)
#filename = filename+".exe"
file_path = os.path.join('png',uuid,filename)
print(file_path)
with open(file_path, 'rb') as file:
response = HttpResponse(file, headers={
'Content-Type': 'application/vnd.microsoft.portable-executable',