SQLPage: Upload not working on Brave

Introduction

On Brave Version 1.66.110 Chromium: 125.0.6422.60 (Official Build) (64-bit) On debian

brave-browser/stable,now 1.66.110 amd64 [installed]
  The web browser from Brave

To Reproduce

Use this page:

SELECT 'form' AS component, 'Upload' AS validate;
SELECT 'Upload' AS value, '' AS label, 'hidden' AS type, 'action' AS name;
SELECT 'content' AS name, 'file' AS type, '' AS label;

Try upload with firefox

Firefox 126.0 (64-bit) (work for me). MXLinux pkg:

firefox/mx,now 126.0~mozillabinaries-1mx21+1 amd64 [installed]
  The Firefox web browser

On the file I tried, the POST payload was like this:

-----------------------------12033294501313551660708751435
Content-Disposition: form-data; name="action"

Upload
-----------------------------12033294501313551660708751435
Content-Disposition: form-data; name="content"; filename="Visitor Enrolment to Full Enrolment.docx"
Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document

PK��	MX���������������_rels/.rels­ÒÁJ1à{Ÿb™{w¶UDd³½ˆÐ›H}€Ìî›LH¦ZßÞP
ºPVÁ3ùçç#¤Ýý¾z§”«ºŠ‚aë àu÷´¼‡M·h_h¯¥Dòèb®ÊNÈ
F‘ø€˜ÍH^çš#…rÓsòZÊ1
µyÓáºiî0ýì€nÒYm­‚´µ+¨vŸ‘þ׍žD[-
-- truncated and possibly mojibaked by my copy paste, but much data followed and I trust is correct (haven't confirmed)

Then with brave

I tried with and without brave shields up/down

Brave Version 1.66.110 Chromium: 125.0.6422.60 (Official Build) (64-bit) Debian pkg

brave-browser/stable,now 1.66.110 amd64 [installed]
  The web browser from Brave

On brave, the POST payload looks like this: This is the full output - there is no data (well, looks like maybe just a blank line):

------WebKitFormBoundaryjZTpHwaPMWnyd7l3
Content-Disposition: form-data; name="action"

Upload
------WebKitFormBoundaryjZTpHwaPMWnyd7l3
Content-Disposition: form-data; name="content"; filename="Visitor Enrolment to Full Enrolment.docx"
Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document


------WebKitFormBoundaryjZTpHwaPMWnyd7l3--

Expected behavior

I expect upload to work on Brave.

I have not tested google chrome or chromium. It would be great if someone could confirm if this is working on other chromium based browsers.

Version information

  • OS: MXLinux
  • Database: N/A
  • SQLPage Version: 0.20.5

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (8 by maintainers)

Commits related to this issue

Most upvoted comments

ok, will give it a try, thnx much