View Issue Details

IDProjectCategoryView StatusLast Update
0009730Talerexchange KYC SPApublic2025-04-15 23:25
ReporterChristian Grothoff Assigned Tosebasjm  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Platformi7OSDebian GNU/LinuxOS Versionsqueeze
Product Versiongit (master) 
Target Version1.0Fixed in Version1.0 
Summary0009730: gigantic uploads by KYC SPA
DescriptionI'm trying to fill in the VQF 902.1 form with a single PDF attached. The PDF has 3.4 MB.

The SPA attempted an upload of 9539961 bytes, so 9.5 MB (!).

Expectations:
- 3.4 MB encode to about 5.5 MB
- + a few kb of JSON overhead
=> < 6 MB upload.

On top, the upload *should* clearly be gzip compressed, which would yield a size of 3.8 MB for the PDF, and a total of 4 MB.

Instead, I get a > 9 MB uncompressed monster upload (which I can't see server-side as we had an 8 MB limit set for now).

Anyway, please investigate & reduce these upload sizes!
TagsNo tags attached.

Activities

Christian Grothoff

2025-04-15 14:25

manager   ~0024553

Tried again, this time with documents of 200k and 30k. Still got an upload size of **5MB**. WTF?

sebasjm

2025-04-15 16:07

developer   ~0024555

I managed to upload a PDF of 7426848 (7.1M) which it was encoded to 9.9M and the reported `content-length` of the request by the browser is 9902847
With firefox and chrome.

The form doesn't leave garbage when moving between fields and I don't know how to reproduce it, you may share the `curl` version of the request. From firefox -> network -> select the POST request -> copy -> copy as Curl

> Tried again, this time with documents of 200k and 30k. Still got an upload size of **5MB**. WTF?

Could it be that you had a list of "Establishers of the legal relationship" with big PDFs and you just change "Copy of identification document" ?

I also needed to change the client_max_body_size to 10M in order not to get `413 Request Entity Too Large`

Anyway, I will check why the request is not gzipped

Christian Grothoff

2025-04-15 16:18

manager   ~0024556

Maybe, I now noticed that there were actually 3 documents in the form, maybe I didn't see the ID document I uploaded for the controlling person and thus miscounted. Still, please use gzip!

sebasjm

2025-04-15 18:51

developer   ~0024563

f13a71f35..badbf4f5f

Issue History

Date Modified Username Field Change
2025-04-15 14:21 Christian Grothoff New Issue
2025-04-15 14:21 Christian Grothoff Status new => assigned
2025-04-15 14:21 Christian Grothoff Assigned To => sebasjm
2025-04-15 14:25 Christian Grothoff Note Added: 0024553
2025-04-15 16:07 sebasjm Note Added: 0024555
2025-04-15 16:18 Christian Grothoff Note Added: 0024556
2025-04-15 18:51 sebasjm Status assigned => resolved
2025-04-15 18:51 sebasjm Resolution open => fixed
2025-04-15 18:51 sebasjm Note Added: 0024563
2025-04-15 23:25 Christian Grothoff Fixed in Version => 1.0
2025-04-15 23:25 Christian Grothoff Target Version 1.0 stretch goals => 1.0