From d7da288ac94fa9fe2e3ba764fcb5d7f84388f1bc Mon Sep 17 00:00:00 2001 From: Jannik Streek Date: Tue, 16 Jan 2024 17:45:20 +0100 Subject: [PATCH] revert changes in file --- lib/qrstorage_web/views/qr_code_view.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/qrstorage_web/views/qr_code_view.ex b/lib/qrstorage_web/views/qr_code_view.ex index 1f776f6..f3c1e30 100644 --- a/lib/qrstorage_web/views/qr_code_view.ex +++ b/lib/qrstorage_web/views/qr_code_view.ex @@ -63,7 +63,8 @@ defmodule QrstorageWeb.QrCodeView do # we upload images as base64. The actual image size will be 0.75 of the base64 encoded text. # To help the user, we will convert this in the error message. # This is not exactly accurate, because a) 0.75 is just an estimation and b) the upload form also takes text characters into account. - max_upload_length = String.to_integer(Application.get_env(:qrstorage, :max_upload_length)) * 0.75 + max_upload_length = + String.to_integer(Application.get_env(:qrstorage, :max_upload_length)) * 0.75 max_upload_length_in_mb = Decimal.round(Decimal.from_float(max_upload_length * 1.0e-6), 1)