Skip to content

Commit

Permalink
revert changes in file
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikStreek committed Jan 16, 2024
1 parent 5008eb5 commit d7da288
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/qrstorage_web/views/qr_code_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d7da288

Please sign in to comment.