add save/load configuration
This commit is contained in:
@@ -80,7 +80,8 @@ def generator_view(request):
|
||||
full_url = f"{protocol}://{host}"
|
||||
try:
|
||||
iconfile = form.cleaned_data['iconfile']
|
||||
print(iconfile)
|
||||
if not iconfile:
|
||||
iconfile = request.POST.get('iconfile')
|
||||
#iconbase64 = resize_and_encode_icon(iconfile)
|
||||
iconlink = save_png(iconfile,myuuid,full_url,"icon.png")
|
||||
except:
|
||||
|
Reference in New Issue
Block a user